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
AnthonyH28_
Frequent Visitor

SUM Measure using ISBLANK (In Column Total)

Ive gone through probably two dozen possible ways to do this and none of them work.

AnthonyH28__0-1666107496407.png

I have 2 measures doing calculations to get numbers for 2019 and 2020. What I want is for that column New to summarize at the bottom of the table.

The Measure for New is:

 

IF(ISBLANK([L3S 2019]),[L3S 2020])

 

 

Ive tried using HASONEFILTER (doesnt work for this) and HASONEVALUE. HASONEVALUE is close but its inversed of what I need. It sums based off the FALSE flag for me and I need to SUM off of the TRUE Flag.

What else are we missing? The logic is that we want to sum all of the numbers in 2020 but only if they had no data in 2019. 

1 REPLY 1
johnt75
Super User
Super User

The measure will depend on which columns you are using in the rows of your matrix. e.g. if the matrix is summarized by Column1, you could use

New =
VAR SummaryTable =
    ADDCOLUMNS (
        SUMMARIZE ( 'Table', 'Table'[Column 1] ),
        "@val", IF ( ISBLANK ( [L3S 2019] ), [L3S 2020] )
    )
RETURN
    SUMX ( SummaryTable, [@val] )

you can add as many columns into the SUMMARIZE as you have on the rows of your matrix.

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.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

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