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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Martin_Songstad
Frequent Visitor

Alternative measures vs alternative VARs

Hi!

 

I have a measure choosing 1 out of 4 other measures, depending on what ISFILTERED, like this:

IB = 
VAR __IB= If(
        ISFILTERED(Age) && ISFILTERED(Duration), [IB_BothFiltered],
        if(ISFILTERED(Age),[IB_AgeFiltered],
            If(ISFILTERED(Duration),[IB_DurationFiltered],[IB_NeitherFiltered])))
RETURN if(__IB>0,__IB)

The purpose is to choose the alternative which calculates faster, when possible.

 

Now I am contemplating replacing those 4 measures with 4 VARs within the main measure instead, but what would happen then? Would all 4 VARs be calculated in the background only for one of them to show up, or would only the VAR that that shows up be calculated?

 

1 ACCEPTED SOLUTION
1 REPLY 1

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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