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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors