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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
kattlees
Post Patron
Post Patron

Show the accumulated balance with a filter

I am trying to create a list of people who have an outstanding balance. 

 

I have these measures:

Total Charges = CALCULATE(sum('Guest Charges and Payments'[Amount]),'Guest Charges and Payments'[Type]="Charge")

Total Payments = CALCULATE(sum('Guest Charges and Payments'[Amount]),'Guest Charges and Payments'[Type]="Payment")

AR Balance = [Total Charges]+[Total Payments]

 

It is working great except I would only like to see those people with a BALANCE. so if they have a $0.00 balance, I would like them to not show up on my list.  Is there a way to do this?

 

I have tried setting a filter where AR Balance is not 0

3 REPLIES 3
Phil_Seamark
Employee
Employee

Hi @kattlees

 

You could try this

 

AR Balance = 
VAR Bal = [Total Charges]+[Total Payments]
RETURN if(Bal=0,BLANK(),BAL)

To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

That makes some of the zero balances blank, but still shows them. I don't want them on the report if there is a zero balance.

 

 See screenshot.  Also, any idea why some zero balances are showing negative and some not?

 

Screenshot.jpg

Hi @kattlees

 

 

What is the difference between a zero balance and one that is a net zero balance?


To learn more about DAX visit : aka.ms/practicalDAX

Proud to be a Datanaut!

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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