cancel
Showing results for
Did you mean:

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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 Date Bank Amount Accounted Date in SAP 1-Jan-23 13333 2-Jan-23 2-Jan-23 3434343 2-Jan-23 23333 4-Jan-23 90899 5-Jan-23 5-Jan-23 9999 5-Jan-23 Total Amt 3571907 Not Accounted Amount in SAP 3457676

1 ACCEPTED SOLUTION
Super User

Hi,

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

``````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.

2 REPLIES 2
Resolver IV

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.

Super User

Hi,

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

``````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.

Announcements

#### Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

#### Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

#### Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors