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

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

Reply
Cyrilbrd
Helper IV
Helper IV

Aging performance issues

Hi,

I am getting poor performance form PBI Desktop with the following measure:

Aging = DATEDIFF(AVERAGE(TDate_creation[date creation]),today(),year)

I tried at first to create a custom column but the editor would not accept the syntax of DateDiff.
The table containing the date of creation contains rows that are NULL, could this be the reason?
Or is the issue with the measure? 

1 ACCEPTED SOLUTION
Cyrilbrd
Helper IV
Helper IV

I created a new column direclty in PBI Desktop using:

aging = DATEDIFF(TDate_creation[date creation],today(),YEAR)

The performance is now back to normal. 

View solution in original post

3 REPLIES 3
Cyrilbrd
Helper IV
Helper IV

I created a new column direclty in PBI Desktop using:

aging = DATEDIFF(TDate_creation[date creation],today(),YEAR)

The performance is now back to normal. 

amitchandak
Super User
Super User

@Cyrilbrd , You should be able to create a new column like , in the table TDate_creation

Aging = DATEDIFF(TDate_creation[date creation],today(),year)

 

 

or a measure =

Aging = AverageX( TDate_creation ,DATEDIFF(TDate_creation[date creation],today(),year) )

 

 

 

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 

Thanks, I was able to figure it out.
All works fine now.
It is often confusing however to figure out if the editor, or the desktop or a measure works best... imo

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors