PowerPivot Peformance Issues - Formulas too complicated?

monsoonnut

New Member
Joined
Jul 1, 2016
Messages
13
Hi
I have created a forecast accuracy report with a mixture of pivots and cube formulas which is working quickly and efficiently until I try to add in the final measure – this measure needs to be reported at SKU level and is calculated off other measures but never makes it to completion with excel crashing before the calculation is complete.
There are circa 6000 SKU’s in the model.
Does anyone have any advice regarding my measures? Could they be written in a more efficient way to enhance performance?

The measure is:

National Total Impact :=
IF (
[Nat Total Error]
- ( ( [Nat Total ALL F-A] - [NatTotABSErr] )
/ ( [Total ALL A] - [SumTotDem] ) )
= 0,
BLANK (),
[Nat Total Error]
- ( ( [Nat Total ALL F-A] - [NatTotABSErr] )
/ ( [Total ALL A] - [SumTotDem] ) )
)
-------------------------------------------------------------------------------
The measures used in this first measure are:


Nat Total Error :=
DIVIDE ( [Nat Total ALL F-A], [Total ALL A] )
-------------------------------------------------------------------------------
Nat Total ALL F-A :=
IF (
HASONEVALUE ( SCMWEEK[WEEK_IK] ),
CALCULATE (
[NatTotABSErr],
ALLSELECTED ( '1 WK Accuracy Output' ),
FILTER (
ALLSELECTED ( '1 WK Accuracy Output' ),
'1 WK Accuracy Output'[Week of Result]
= VALUES ( '1 WK Accuracy Output'[Week of Result] )
)
),
BLANK ()
)
-------------------------------------------------------------------------------
Total ALL A :=
IF (
HASONEVALUE ( SCMWEEK[WEEK_IK] ),
CALCULATE (
[SumTotDem],
ALLSELECTED ( '1 WK Accuracy Output' ),
FILTER (
ALLSELECTED ( '1 WK Accuracy Output' ),
'1 WK Accuracy Output'[Week of Result]
= VALUES ( '1 WK Accuracy Output'[Week of Result] )
)
),
BLANK ()
)
-------------------------------------------------------------------------------
NatTotABSErr :=
SUMX (
DISTINCT ( '1 WK Accuracy Output'[SKU_ID] ),
CALCULATE ( ABS ( [SumTotErr] ) )
)

Cheers
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
It looks fine to me

how many columns in your longest table?
how many items are in your pivot table? I assume 6000, right? Why do you need to materialise 6000 records? Are there other options?
are you using 32 bit or 64 bit?
 
Upvote 0
Thanks Matt

I now have faith that my formulas are OK - maybe I'm better at this than I thought!

I have taken a different route and amended the report to work in a different way, lookups and VBA.

It now runs quickly and smoothly.
 
Upvote 0

Forum statistics

Threads
1,215,978
Messages
6,128,053
Members
449,416
Latest member
SHIVANISHARMA1711

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top