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
JustinDoh1
Post Prodigy
Post Prodigy

How to apply filters on accumulated amount (this case: outstanding AR Total)?

Hi Community,

 

(I am sharing my Pbix file here )

 

I am trying to apply slicers (filters) on an accumulated amount.

I am doing A/R aging analysis, and requirement is apply filter(s) on oustanding A/R amount.

 

Initially, I was able to apply filter on a monthly amount (not oustanding amount) because, I added a month index column ("Year-MonthName") on the Calendar table and joined with data with a Fact table (where it contained the data ("PayerNameRedefined") to be used for a filter.

 

This is data modeling:

JustinDoh1_1-1645567727283.png

 

Let me show you what I am trying to explain:

 

This one is A/R of each month (not accumulated (outstanding), and filter works fine.

JustinDoh1_0-1645565963284.png

 

 

Filter works fine:

JustinDoh1_1-1645566082094.png

 

 

** This is Requirement/Expectation:

JustinDoh1_2-1645566470693.png

 

 

Just for FYI, I have a separate data to calculate "Total AR As of Month" on a table called "MonthsTable", but this one does not have a relationship with data for filter (in the Fact table ("vw_revenue_metrics_ar_aging").

JustinDoh1_3-1645567013596.png

 

Is there any function in PowerBI I could use to get the "outstanding amount of each month / accumulated amount as of certain month" using the data in the Fact table ("vw_revenue_metrics_ar_aging")?

 

Thanks.

 

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@JustinDoh1 ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Usually get cumulative like

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

 

or

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@JustinDoh1 ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

Usually get cumulative like

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected('Date'),'Date'[date] <=max('Date'[date])))

 

or

 

Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))

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

@amitchandak

Thank you for help!

I am sharing here (as indicated on the original post).

Please let me know if you have any issue opening the file.

Thank you.

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.