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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
planc7
Helper I
Helper I

ALL function clarification

Hy everyone,

I have this very simple table:

Spoiler
YEARBRANDVALUEDATA TYPE
2019AA172ACT+FRC
2019AA188BDG
2020AA131,5ACT+FRC
2020AA189BDG
2021AA167BDG
2021AA197,5ACT+FRC
2022AA204BDG
2022BB2ACT+FRC
2022AA206,5ACT+FRC
2023AA226ACT+FRC
2023AA244BDG
2023BB2BDG
2024BB2BDG
2024AA184ACT+FRC
2024AA226,5BDG
2025CC347BDG
2025CC223,5BDG
2025BB2BDG
2025AA199,5ACT+FRC
2025AA224BDG
2025AA230BDG
2026AA209,5BDG
2026CC325BDG

 

 

What i need to do, is showing all the "BDG" values even if "ACT+FRC" value is filtered.

The formula that I'm using is really simple and it is the following:

CALCULATE( SUM('Table'[VALUE]), 'Table'[DATA TYPE] = "BDG", ALL('Table'[DATA TYPE]) )

 

 


But, even if I used the ALL function to ignore the filter on DATA TYPE the matrix shows only this value
(for example, nor values for CC neither for BB is shown). 
 
How does ALL function work if a filter context exist?
Thank you, it is driving me crazy.
planc7_0-1731607367706.png
1 ACCEPTED SOLUTION
Bibiano_Geraldo
Super User
Super User

Hi @planc7 ,

This occurs because brands AA and BB have some rows with the Data Type equal to "ACT+FRC," which is why they appear in the results. On the other hand, brand CC has no rows with the Data Type "ACT+FRC," so it was excluded.

The ALL function is working correctly; when using ALL in DAX, it removes any filters applied to a specific column or table.

My question is, why are you filtering only "ACT+FRC" if you want to see both Data Types?

To learn more about the ALL function, click here 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @planc7 ,

 

I recommend using this DAX formula and then disconnecting the slicer from the matrix visual directly.

CALCULATE(SUM('Table'[VALUE]),'Table'[DATA TYPE] = "BDG")

vbofengmsft_0-1731653281078.png

 

Best Regards,

Bof

 

Bibiano_Geraldo
Super User
Super User

Hi @planc7 ,

This occurs because brands AA and BB have some rows with the Data Type equal to "ACT+FRC," which is why they appear in the results. On the other hand, brand CC has no rows with the Data Type "ACT+FRC," so it was excluded.

The ALL function is working correctly; when using ALL in DAX, it removes any filters applied to a specific column or table.

My question is, why are you filtering only "ACT+FRC" if you want to see both Data Types?

To learn more about the ALL function, click here 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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