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
manjeshjk
Helper I
Helper I

Sum of a column based on the the null values from a different column

Hi All,

 

I have a situation where I need to display the sum of Bank account where the Accounted Date in SAP is null using a mesaure.

 

Example

 

Issue DateBank AmountAccounted Date in SAP
1-Jan-23133332-Jan-23
2-Jan-233434343 
2-Jan-2323333 
4-Jan-23908995-Jan-23
5-Jan-2399995-Jan-23
Total Amt3571907 
   
Not Accounted Amount in SAP3457676 

 

Appreciate your feedback

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi,

I am not sure whether I understood your question correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1674015875027.png

 

 

Not accounted amount in SAP: =
IF (
    HASONEVALUE ( Data[Issue Date] ),
    [Total amount:],
    CALCULATE ( [Total amount:], Data[Accounted Date in SAP] = BLANK () )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

View solution in original post

2 REPLIES 2
KeyurPatel14
Responsive Resident
Responsive Resident

Hii @manjeshjk ,
Please try below formula and if this helps you then accept it as a solution and give a kudos so that it can reach to more members.

KeyurPatel14_0-1674021758019.png

 

Jihwan_Kim
Super User
Super User

Hi,

I am not sure whether I understood your question correctly, but please check the below picture and the attached pbix file.

 

Jihwan_Kim_0-1674015875027.png

 

 

Not accounted amount in SAP: =
IF (
    HASONEVALUE ( Data[Issue Date] ),
    [Total amount:],
    CALCULATE ( [Total amount:], Data[Accounted Date in SAP] = BLANK () )
)

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

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.