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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

Select all from filter to include in DAX Calculation

Hello All,

 

I have report where I have 2 tables data A and B.

So here i have field called Region with values EMEA and APAC from both the tables.

I have a filter on Region

Here is my dax calculation for a measure

 

If region  ='EMEA' then TableA.Field1

elseif region  ='APAC' then TableB.Field1

elseif Overall then TableA.Filed1+TableB.Field1

 

In my Region filter I am getting EMEA ,APAC and Select All options

Here my confusion is like how I need to get the overall condition

When the user selects 'Select all' from filter I have to sum both the fields from A and B

 

 

Could any one please help

1 ACCEPTED SOLUTION
SivaMani
Resident Rockstar
Resident Rockstar

@Anonymous , Select All is nothing but no filter. There is a DAX function that returns whether the table or column is directly filtered - ISFILTERED()
https://docs.microsoft.com/en-us/dax/isfiltered-function-dax

 

You can use this function for overall condition, IF( NOT(ISFILTERED(Region)), A+B)

View solution in original post

1 REPLY 1
SivaMani
Resident Rockstar
Resident Rockstar

@Anonymous , Select All is nothing but no filter. There is a DAX function that returns whether the table or column is directly filtered - ISFILTERED()
https://docs.microsoft.com/en-us/dax/isfiltered-function-dax

 

You can use this function for overall condition, IF( NOT(ISFILTERED(Region)), A+B)

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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