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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
jonclay
Helper IV
Helper IV

Problem with ISNULL DAX code

Hi everyone
I'm very new to PowerBI, so apologies if this is a day 1 rookie error!

 

What I'm trying to achieve is to create a column called Total Received & Banked (one-off) which is an addition of columns 

sic_transactions[DC1 Total Inc GAsic_transactions[DC1 Total Inc GA and sic_transactions[DC1 Total Inc GA if the column called 
sic_transactions[sic_pledges.sic_pledgedate is blank.
 
I've included my DAX code in the attached image. What is actually happening is the reverse of what I'd like to happen. The new Total Received & Banked (one off) column is only calculating if the sic_transactions[sic_pledges.sic_pledgedate field is NOT blank.
 
Could anyone please tell me what I'm doing wrong?
 
Many thanks
JonISNULL DAX issue.JPGISNULL issue.JPG
1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

That's exactly what you told it to do. Abbreviating names, your DAX looks like this:

IF ( ISBLANK ( sic[Date] ), BLANK (), sic[DC1] + sic[DC2] + sic[DC3] )

 

This says that if [Date] is blank, return a blank, otherwise do the sum. If you want the opposite, just remove "BLANK()" or put it as the 3rd argument instead of the 2nd.

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

That's exactly what you told it to do. Abbreviating names, your DAX looks like this:

IF ( ISBLANK ( sic[Date] ), BLANK (), sic[DC1] + sic[DC2] + sic[DC3] )

 

This says that if [Date] is blank, return a blank, otherwise do the sum. If you want the opposite, just remove "BLANK()" or put it as the 3rd argument instead of the 2nd.

Hi Alexis

Many thanks, that works great now. I knew that it would be something silly that I'd done!

Best wishes,

Jon

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors