Issue with Power Pivot measures & slicers

Jaunkalns

New Member
Joined
Apr 26, 2022
Messages
17
Office Version
  1. 365
Platform
  1. Windows
Hello,

I've come across an annoying "feature" while trying to create an Excel based report.
Basically, I've created a data model using Power Pivot and added a couple simple measures - Forecast Accuracy (FA) & BIAS (see screenshot).
After adding them to pivot tables everything seems to be correct and working properly, but after adding some slicers one of the measures (FA) is displaying the results in a weird way.
When I try to filter a specific country (using the country field from the unique list used for creating relationships), the rest do not disappear, but are shown as 100.0% (see screenshot). Choosing to use a filter using the country field from the same data source works fine (but, of course, cannot the be linked with other tables in my report).
The other measure (BIAS) works perfectly fine.

I have two main data sources that originate from the same original data table and are linked/connected using relationships via helper tables.
The reason for this is the fact that the full data is on client level (more detailed) while FA is calculated on product level for each country (it uses absolute value difference between forecasted & actual sales volumes and is not calculated properly otherwise). I could not find a better way to solve this than grouping the client level data using Power Query.
I still need to analyze the client level data, so it is crucial to have it as well.

Not sure where the problem might be, so any ideas on how to fix this or even approach it differently altogether will be greatly appreciated.
 

Attachments

  • Screenshot 2024-04-19 175828.png
    Screenshot 2024-04-19 175828.png
    60.5 KB · Views: 21
  • Screenshot 2024-04-19 171516.png
    Screenshot 2024-04-19 171516.png
    12.5 KB · Views: 20
  • Screenshot 2024-04-19 173032.png
    Screenshot 2024-04-19 173032.png
    13.3 KB · Views: 20

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
For example, one of the pivots that is not filtering as expected is set up as following:
Year/Month & M_FA (this is a measure) taken from Material level
MaterialId & ProductDescription from Material list

Slicers connected - CountryLevel1, Division, UmbrellaBrand (all from their respectful helper lists in the middle)

So, when selecting country level in the slicer, it does not filter out the MaterialId that are not present in the specific country but just leaves it as 100%

Screenshot 2024-04-23 110826.png
 
Upvote 0
But if I switch the measure to M_BIAS (with everything else remaining the same) the pivot is filtered as expected.
 
Upvote 0
Figured it out - the issue was with the M_FA measure, as the "1-" part of the function applies to the whole dataset and is constant.
So even if the "DIVIDE(SUM([ABS Deliveries]), SUM([Total Deliveries])" part returns nothing, the measure is still calculated and returns 1 (or 100% when converted to percentages).

Adjusted it and now everything works as expected:
=IF(
SUM([ABS Deliveries]) = 0,
BLANK(),
1-DIVIDE(SUM([ABS Deliveries]),SUM([Deliveries])))
 
Upvote 0
Solution

Forum statistics

Threads
1,223,936
Messages
6,175,507
Members
452,650
Latest member
Tinfish

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