Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi,
I need to create a measure to calculate # of cases that were opened for longer than 90 days and visualize it on a historical line chart. So, something like if time frame between date open and date closed is equals to 90 or more days then count that or if date closed is blank AND date opened to today is equals to, or more than 90 days then count that too.
I do not understand time calculations well enough to do this myself, so I am asking for help. Attaching a sample of my dashboard as well.
Solved! Go to Solution.
Hello, @Unknowncharacte ,
try something like this:
LongerThan90 = COUNTROWS(FILTER('Fact Table', ( IF( ISBLANK('Fact Table'[Date Closed]), TODAY(), 'Fact Table'[Date Closed]) - 'Fact Table'[Date Opened] ) > 90))
@Unknowncharacte Should be able to modify Open Tickets for this purpose:
Open Tickets - Microsoft Fabric Community
Thank you so much for the reference!
Your question has nothing to do with Time Intelligence functions.
Use COALESCE() to replace blank Closed Date on the fly.
= COALESCE( MAX( 'Fact Table'[Date Closed] ), TODAY() ) - MAX( 'Fact Table'[Date Opened] ) >= 90
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Alright, what would you refer it as?
Hello, @Unknowncharacte ,
try something like this:
LongerThan90 = COUNTROWS(FILTER('Fact Table', ( IF( ISBLANK('Fact Table'[Date Closed]), TODAY(), 'Fact Table'[Date Closed]) - 'Fact Table'[Date Opened] ) > 90))
Thank you so, so much!
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 23 | |
| 22 | |
| 18 | |
| 17 | |
| 13 |
| User | Count |
|---|---|
| 67 | |
| 50 | |
| 46 | |
| 41 | |
| 39 |