Quantcast
Channel: SQL Server Analysis Services forum
Viewing all articles
Browse latest Browse all 14337

Calculated measure Totals are not correct in Excel Pivot

$
0
0

I have a calculated measure [Qty on hand] in my cube to emulate LastNonempty function for semi additive measures in Standard edition. Excel 2013 is a front end tool for the users. Here is calculated measure formula:

CREATE MEMBER CURRENTCUBE.[MEASURES].[QtyOnHand]
      AS ([measures].[_Qty on Hand],

TAIL(Nonempty(existing[DateTime].[Date].[Date].Members,[measures].[_Qty on Hand]),1).Item(0))

 1. Excel pivot (SKU#, Qty on Hand) does not calculate totals correctly:Totals show 10 but it should be 0. How to tweak Pivot table options or calculated member to get correct totals?

Qty On   Hand

Column Labels

 

 

Row Labels

October 2013

November 2013

Grand Total

766356130241

 

 

1

766356130258

 

 

0

766356202696

 

 

0

766356202702

 

 

0

766356202719

 

 

0

766356202726

 

 

0

766356202757

 

 

0

766356202771

 

 

0

766356202788

 

 

0

766356203181

 

 

0

766356203204

 

 

0

766356203211

 

 

0

766356203228

 

 

0

766356203259

 

 

0

766356203266

 

 

0

Grand Total

10

9

9

2. Another issue is that Excel 2013 does not show detail for OLAP calculated measures (from cube)? I'm not able to get detail on SKU# if I group by Brand id then try to dig to SKU#.  I'm getting all groups collapsed and no Expand option for Row fields - Brand and SKU No - as shown here:

Qty On Hand Column   Labels
Row Labels October 2013 November 2013 Grand Total
Grand   Total 10 9 9

If Iremove SKU No, then I'll get to see Brand (ALIA). But when I try "Show Detail" on 10 Excel saying that he cannot show details on calculated cell. Is there a way to dig to SKU#?

Qty On Hand

Column   Labels

Row Labels

October 2013

November 2013

Grand Total

ALIA

10

9

9

Grand   Total

10

9

9

3. last and least, is that my 3 poor calculated measures slows down Excel and cube significantly. Is there a good way to tune cube or the measures up?



Viewing all articles
Browse latest Browse all 14337

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>