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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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