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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
sbarker_11
Helper I
Helper I

Calculate SUM IF if NOT Blank

Hi, im trying to sum the total approved amount with a loan status of "cancelled" ONLY IF the approved date is blank.

 

Ive tried this measure, but it isnt giving me the correct number:

CancPost-Approval (£) = CALCULATE(sum(DATA[Approved Amount (sec/Unsec)]),DATA[Approved Date]<>BLANK(),DATA[Loan Status Group]="Cancelled")

 

its possible that my approved amount calc column is incorrect (it should give me offfer 1 amout and offer 2 if nothing in offer 1?:

Approved Amount (sec/Unsec) = COALESCE(DATA[Unsecured Offer 1 Amount],DATA[Secured Offer 1 Amount])

 

5 REPLIES 5
Anonymous
Not applicable

I'm thinking that BLANK never equals null--maybe you need to change Data[Approved Date] <>BLANK()

to

IF NOT ISNULL(Data[Approved Date])

 

--Nate

Hi it doesnt seem to work, change to this:

CancPost-Approval (£) = CALCULATE(sum(DATA[Approved Amount (sec/Unsec)]), IF NOT ISNULL(Data[Approved Date]),DATA[Loan Status Group]="Cancelled")
 

returned below error

The syntax for 'NOT' is incorrect. (DAX(CALCULATE(sum(DATA[Approved Amount (sec/Unsec)]), IF NOT ISNULL(Data[Approved Date]),DATA[Loan Status Group]="Cancelled"))).

Anonymous
Not applicable

Sorry, got my syntax mixed up--try NOT IS NULL instead of NOT ISNULL.

 

---Nate

still no luck sadly 😞


The syntax for 'NOT' is incorrect. (DAX(CALCULATE(sum(DATA[Approved Amount (sec/Unsec)]), IF NOT IS NULL(Data[Approved Date]),DATA[Loan Status Group]="Cancelled"))).

Anonymous
Not applicable

Hi @sbarker_11 ,

I think what Nate suggests is NOT ISBLANK()
ISBLANK function (DAX) - DAX | Microsoft Learn

Best Regards,
Gao

Community Support Team

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors