Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
bswylie
Helper I
Helper I

ALL() function ignored / inconsistent functionality when also using report level filter

While working on an analysis report we came across (what seems to be) an issue in Power BI, and are not sure if this is a bug or a misunderstanding on our part. In summary, a measure we have created which uses the ALL() filter modifier seems to calculate incorrectly when a report level filter is applied, and the correctness of the ALL function seems to vary depending on what is selected in the page filter.

 

We have been able to reproduce the strange behaviour using some very simple test data. The test data set we are using to portray this issue is shown in the image below:

 

00.png

 

When we implement the measure shown in the image below,

 

0.png

 

and have all the selection boxes of the DateID report filter selected,

 

1.png

 

the ALL() function works as expected, and ignores the corresponding slicers that we try to apply to the CountALLInstances measure that we have.  See images below.

 

 

Without start day or sick days filter applied (correct results)

 

2.png

 

Note that the CountFilteredInstances is similar but does not have the ALL function, and always performs as we expect.

With a start day filter applied (correct results)

 

3.png

With a sick day filter applied (correct results)

 

4.png

 

 

However, when we only have SOME of the DateID report filter options selected, the ALL() function is no longer able to turn off the corresponding slicers that we apply to the CountALLInstances.  The value for CountALLInstances that we would expect to see regardless of whether the Start Day or Sick Day slicer is applied is “6”, but this is not the case as can be seen in the images below

 

5.png

 

Without start day or sick days filter applied (correct results)

 

6.png

With a Start Day filter applied – incorrect results despite the ALL function. CountALLInstances should still be “6”.

 

7.png

With a Sick Days filter applied – incorrect results despite the ALL function. CountALLInstances should still be “6”.

 

8.png

We would greatly appreciate if anyone is able to identify whether this is a bug or is expected behaviour, and thus how we would work around this.

 

The desktop file is linked below for reference.

 

https://dl.dropboxusercontent.com/u/78036039/Sick%20Leave%20Report%20Filter%20Test%20v2%20-%20201610...

 

 

1 ACCEPTED SOLUTION
bswylie
Helper I
Helper I

Hi,

 

I got a response from Microsoft to my ticket and wanted to share the result. This did fix the problem as per screenshot below. I'm not sure why there is a difference between PBI and PowerPivot results, but I'm grateful to have something to work with. It is not clear whether the Power BI support team considers this a bug or not as they refer more to "problem" and "workaround". I was under the impression everything could be done from a flat table in PBI if only one source being used, but it's not much admin to add to link up at least. Thanks all for the input.

 

Microsoft support response

Use the ALL function on the dimension attribute instead of the column in the fact table, and use the slicer on the dimension attribute, this seems to workaround the problem.

 

Corrected.png

 

View solution in original post

22 REPLIES 22
Anonymous
Not applicable

I took a look... and agree that something weird and broken is happening.  Definately use the "send a frown" feature of PBI Desktop, and attach your pbix file to the mail... the product team will take a look.

Thanks so much, I really appreciate having someone else confirming this. I'll do as you recommend!

Helpful resources

Announcements
July 2024 Power BI Update

Power BI Monthly Update - July 2024

Check out the July 2024 Power BI update to learn about new features.

Top Solution Authors