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
jmayer96
New Member

Filtered Count Assistance

Hi there!

 

Been struggling with this for a bit, I have a balance in one field, and have created a conditional field to age the balance, when I pull distinct counts it will give me a correct total, but not per aging group. Since the accounts have a balance in multiple rows I'm not sure how to proceed.

 

I created 4 more conditional columns that come to 0 if its it not one of the other buckets, but the count still somehow is the same as before.

 

What I'm looking for are distinct counts, with customers who only have a balance in either of these 4 columns:

 

jmayer96_0-1683058670270.png

 

What I get now is this:

 

jmayer96_1-1683058727776.png

584,845 is the correct distinct total, but obviously there are customers double counted in the other buckets, so they will never equal the correct total.

 

Thanks!

 

1 REPLY 1
amitchandak
Super User
Super User

@jmayer96 , Try a measure like

 

calculate(distinctcount(Table[Customer]), filter(Table, Table[Arrear_bal_1_30] >0 || Table[Arrear_bal_31_60] >0 || Table[Arrear_bal_61_90] >0 || Table[Arrear_bal_90+] >0)) 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

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.