cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
Invesco
Helper V
Helper V

IF with Isfiltered DAX Measure not return expected result when no filter is selected

Hi Experts

 

The following measure works fine when a filtered is selected that comes from dev_shc_shingrix_activity and and also works fine when a filter is selected from shc_shingrix_practice. However when no filter is selected is dose not give the correct result~

 

Measure

Shingrix Activity = IF(ISFILTERED(dev_shc_shingrix_activity),[Shingrix_],IF(ISFILTERED(shc_shingrix_practice),[Shingrix],[Shingrix_]))+0
 
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Invesco , try like

 

IF(calculate(ISFILTERED(dev_shc_shingrix_activity), allselected()),[Shingrix_],
IF(calculate(ISFILTERED(shc_shingrix_practice), allselected()),[Shingrix],
[Shingrix_Test]))+0

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Invesco , try like

 

IF(calculate(ISFILTERED(dev_shc_shingrix_activity), allselected()),[Shingrix_],
IF(calculate(ISFILTERED(shc_shingrix_practice), allselected()),[Shingrix],
[Shingrix_Test]))+0

Thank you Amit

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors