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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Report filter is still affecting my ALL function in measure

I have a report filter to exclude all data that has and [Item Status] of Cancelled.  However I want one calculation to exclude this parameter.  I want it to callculate the sume of my $$ even if it is cancelled.  I have created the measure below:

measure = CALCULATE(SUM(factPPM[Currency Amount  (Fin Plan)]),
    all('Forecast Period'),
    ALL(dimLists[Item Status]),
    factPPM[Financial View (Fin Plan)]="Budget")

 

However, the result of this measure is still affected by the report filter. Im not sure how else to make this calculation not be affected. 

 

Can anyone provide some suggestions?

 

Thank you in advance for your help.

3 REPLIES 3
v-yulgu-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous ,

 

Please describe your problem with sample data and show the expected result. How to Get Your Question Answered Quickly

 

If possible, you could share the sample .pbix file where sensitive data is masked.

 

Regards,

Yuliana Gu

Community Support Team _ Yuliana Gu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
OwenAuger
Super User
Super User

@Anonymous 

Hazarding a guess: Do you have a "sort by" column set for dimLists[Item Status]?

If so, you will also need to include that column in ALL.

See this article:

https://www.sqlbi.com/articles/side-effects-in-dax-of-the-sort-by-column-setting/

 

 


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn
Greg_Deckler
Community Champion
Community Champion

Hmm, I can't seem to replicate this. I created a measure like:

 

Measure 11 = 
VAR __table = ALL(Table14[Prod Order No_])
VAR __values = DISTINCT(__table)
RETURN
CONCATENATEX(__values,[Prod Order No_],",")

And even if I put in a Report filter excluding some of these, this measure returns all of them. 



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors