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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
akhtar0507
Frequent Visitor

Dynamic Ageing

Hello,
I am actually working on an AR ageing report.

My data model is as follows: I have a AR transaction table with the amount, with a Date filed related to a calendar table.

So far, I have managed to get the ageing as at today. I have added a calculated column, to calculate the age of the transaction and have used this measure to make it work:

Ageing AR Amount = CALCULATE(
PostAR[AR Net],
FILTER( DISTINCT(PostAR[Ageing]),
COUNTROWS(FILTER('Ageing Group', PostAR[Ageing] >= 'Ageing Group'[Min] &&
PostAR[Ageing] <= 'Ageing Group'[Max]
)
)))
 
Ageing group table and ageing is as follows:
 
Age group.PNGageing.PNG
 
So far so good. However, I need to have the calculated column age as dynamic, so that the ageing report is as at a selected date by the user.
I have tried adding the ADDCOLUMNS to caluclated the age based on the date selected, but cannot figured it out.
 
4 REPLIES 4
faisalazh
Advocate II
Advocate II

Hi Akhtar.

i think it's not possible to have a dynamic column that respond to a slicer.

but if you want to have calculated column.

then you can create a crossjoin calculated table that consist a calendar and age group.
something like this formula:

Summary AR = 
var tblCalendar = SELECTCOLUMNS('Calendar', "Date", 'Calendar'[Date])
var tblAgeingGroup = SELECTCOLUMNS('Ageing Group', "Age Group", 'Ageing Group'[Age Group])
var tblClient = SELECTCOLUMNS(Client, "DCLink", Client[DCLink])
return CROSSJOIN(tblCalendar,tblAgeingGroup,tblClient)

then you can add calculated column for each reporting date, age group and client either to count number of transactions and amount.

finally, create a relationship between your calendar table with new summary AR table.

 

-

PaulDBrown
Community Champion
Community Champion

Can you provide sample data or a mock-up PBIX file?





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






Please find link below of model I am using :
AgeAR 
Anticipated thanks.

akhtar0507
Frequent Visitor

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.