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
admin11
Memorable Member
Memorable Member

How to compute Aging for 1 to 31 Day ?

Hi All

My pivot table 1 is working fine :-

admin11_0-1612441859154.png

Due to when i export the above to excel the aging day sequences is not correct , i decide to change to stright table. my result as below , when i try to create first column amount for 1 to 31 Day :-

admin11_1-1612441966166.png

My expression :-

_Day 1 to 31 =
var _datediff=DATEDIFF(AR[AR Invoice Date],TODAY(),DAY)
return
SWITCH(
TRUE(),
_datediff<=31,"1 to 31 Day"
)
 
I need time above expression with field = AR_AMT_
 
Can some one share with me how to do it ?
 
Paul

 

 

1 ACCEPTED SOLUTION

@admin11 

I Suggest you to watch this video to get AR Ageing with simpler approach

https://www.youtube.com/watch?v=3bV9BfB3_Oc




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


View solution in original post

18 REPLIES 18
VijayP
Super User
Super User

@admin11 

Find attached




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


VijayP
Super User
Super User

@admin11  Sharing in few minutes! creating for you!

 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


amitchandak
Super User
Super User

@admin11 , Try like

 

_Day 1 to 31 Amount =
var _datediff=DATEDIFF(AR[AR Invoice Date],TODAY(),DAY)
return
SWITCH(
TRUE(),
_datediff<=31,AR_AMT_
)

 

 

or
calculate(sum(table[AR_AMT_]), filter(Table,[_Day 1 to 31 ] ="1 to 31 Day"))

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 

I try both i get error :-

Try Measure

admin11_1-1612445708891.png

 

Try column :-

admin11_0-1612445619226.png

 

admin11
Memorable Member
Memorable Member

@admin11 

I Suggest you to watch this video to get AR Ageing with simpler approach

https://www.youtube.com/watch?v=3bV9BfB3_Oc




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


@VijayP 

I just notice that you are the one create the video

12k hv view your video 


May you should create more such video . For GL , Inventiry , Sales . 

or you can introduce me such kind of video very helpful 

@admin11 

Sure, Iwish to create but need some sample data with a problem statement .

if you can explain the problem statements much clear regarding GL Inventory and Sale I could give a nice video, you can connect with me at LinkedIn 




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


@VijayP 

https://community.powerbi.com/t5/Desktop/Problem-Statement-Create-P-amp-L-Summary-Table-for-GL-ANALY...

Above link is the GL problem statement. i start with create a summary on P&L report. 

 

Hope you can contribute.

 

Paul

@admin11 

Will Work on it! and share the solution soon!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


@VijayP 

Look like i am stuck at how to create detail P&L report . So i create Filter report by P&L items. as below , So that i can view which are the expense are increase and decrease :-

admin11_0-1612564199715.png

Pls use this PBI file :-

https://www.dropbox.com/s/nc3jkl4tk7vhrkp/PBT%20GL%20VER0051%20GL%20ANALYSIS%20PROBLEM%20STATEMENT%2...

 

Paul

 

 

@VijayP 

Below PBI file have solve the Sorting of P&L field :-

https://www.dropbox.com/s/rq165gc961b79hq/PBT%20GL%20VER0032%20GL%20ANALYSIS%20PROBLEM%20STATEMENT%2...

I hope you can help me look into Problem statement 4. Create a detail P&L report. As look like this is one of the most diffcuilt part :-

 

https://community.powerbi.com/t5/Desktop/Problem-Statement-4-How-to-create-a-detail-P-amp-L-Statemen...

 

Paul

@admin11 

That is the Easy part! only thing we need to have clarity about the Data!

I have gone thru the Data , let me know one thing

There are few Expense Items like Provision for Depriciation , Output Tax % and few more don't have the Expense  Category, even not as Others, I need to understand whether those are part of expenses or to be shown in Balance Sheet!?




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


@VijayP 

May be it is due to the PBI i share with you , i have filter off some row. 

 

Can you using below PBI file , i load with full data :-

https://www.dropbox.com/s/kwuwkpmysxdo5nl/PBT%20GL%20VER0057%20GL%20ANALYSIS%20PROBLEM%20STATEMENT%2...

admin11_0-1612653515914.png

Let me know which expense data you need to know more info.

 

Paul

@VijayP 

Yes this video is very good. firstly I get to learn how to create those Aging expression and report can drill down . 

Do you have this video PBIX file ? 

@admin11 

Please let me know whether that can be your required Solution and if so Please mark the same and also Kudos are appreciated




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


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.