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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

Check out the February 2026 Power BI update to learn about new features.