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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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