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
PhoenixBird66
Helper III
Helper III

DAX measure help - return a value from one column if the value in another column is not blank

I'm trying to create a measure which returns the value from the January 2019 Revenue column, if the value in the Jan%Increase_Excluding Outliers column is not blank.

 

I've tried this DAX measure but it doesn’t work correctly - the total at the bottom looks wrong (it’s the same as the total for January 2019 Revenue, and I think it should be less because I want it to ignore some of the sales):

 

Measure 3 = IF( NOT( ISBLANK( [Jan%Increase_Excluding Outliers] ) ) , [January 2019 Revenue])

 

Capture.JPG

 

1 ACCEPTED SOLUTION
AkhilAshok
Solution Sage
Solution Sage

Try:

Measure 3 =
SUMX (
    VALUES ( Table[StdSvcKey] ),
    IF (
        NOT ( ISBLANK ( [Jan%Increase_Excluding Outliers] ) ),
        [January 2019 Revenue]
    )
)

View solution in original post

3 REPLIES 3
AkhilAshok
Solution Sage
Solution Sage

Try:

Measure 3 =
SUMX (
    VALUES ( Table[StdSvcKey] ),
    IF (
        NOT ( ISBLANK ( [Jan%Increase_Excluding Outliers] ) ),
        [January 2019 Revenue]
    )
)

That works, thanks so much for your help!

calerof
Impactful Individual
Impactful Individual

Hi @PhoenixBird66 ,

 

Try using this measure:

 

Measure 3 = CALCULATE(
                SUM( Table1[Jan 2019 Revenue] ),
                FILTER( Table1, Table1[Jan% Increase excl outl] <> BLANK() )
)

Regards,

 

Fernando

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.