BusinessObjects Board

Pivot Tables

Anyone had any issues basing a graph over a pivot table, where the pivot table can have a variable number of rows and columns, depending on user selection of the x/y values to display?

It looks straightforward enough…

Debbie

ETA … or maybe not. How on earth do I force the pivot to refresh when the underlying data changes?
ETA again … Googling around - doesn’t look like I can. Trying to figure out how I can reproduce a crosstab without doing it at database level (which I usually do).


Debbie :uk: (BOB member since 2005-03-01)

Should be fine.

Just set the “ignore blank values” checkboxes so you don’t end up with empty series.

Could get more complicated, depending on whether it’s pulling data on the fly or not that can trip it up.

Depending on how you get your data you might run into the same issue as here: Data grow issue in WebService con

Good Luck!
-tkt


theknowtank (BOB member since 2011-04-20)

No. It doesn’t work. As I read up online, while you can use a pivot in the excel part of xcelsius, once it’s converted to a SWF, it can’t then handle a data refresh. So I can refresh my underlying data but there is no way to refresh the pivot table.

I normally create a dummy crosstab with my SQL code - since I’m using a 6 x 6 user-selected matrix, I wanted to avoide hundreds of lines of code. I’m working on it…

Debbie


Debbie :uk: (BOB member since 2005-03-01)

Ack…apologies. I didn’t fully understand what you were asking.

What type of data connection are you using?

-tkt


theknowtank (BOB member since 2011-04-20)

XML. I could do it easily if I hardcoded everything, but I was trying to make it truly dynamic by letting the user select any two dimensions to graph and write one bit of code to handle all of it.

Finally did it using oracle dense_rank. Pulled the raw data summarised by 6 dimensions. Used this as an inline view and extracted and ranked by x and y, where x and y are input at runtime by the user.

Surprisingly, it works… :blue:

Debbie


Debbie :uk: (BOB member since 2005-03-01)

So you feed SQL to your dashboards via XML? Never done that. I’ve had to use Live Office or Web Services or XWIS.

I’ll look into that. May be an option when my standard options don’t work. My IT department here would hate it, though, if they let me do it at all!

Glad you worked it out.

-tkt


theknowtank (BOB member since 2011-04-20)

Yep. I write raw SQL to access my databases and host it in an aspx script - it returns XML. Either real-time for quick queries or those that require user-interaction, or overnight on a batch file to an XML file for slower queries.

No business objects, no messing around. I can write a script that gives me precisely the data I want in the exact format.

There are sample scripts in this forum somewhere that I’ve posted in the past.

Debbie


Debbie :uk: (BOB member since 2005-03-01)