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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

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])))

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])))

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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