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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Unknowncharacte
Helper III
Helper III

Time Intelligence Question

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. 

Unknowncharacte_0-1697291577580.png

Sample Data.pbix

1 ACCEPTED SOLUTION
vojtechsima
Super User
Super User

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))

 

vojtechsima_0-1697293493848.png

 

View solution in original post

6 REPLIES 6
Greg_Deckler
Community Champion
Community Champion

@Unknowncharacte Should be able to modify Open Tickets for this purpose:

Open Tickets - Microsoft Fabric Community



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Thank you so much for the reference!

ThxAlot
Super User
Super User

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?

vojtechsima
Super User
Super User

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))

 

vojtechsima_0-1697293493848.png

 

Thank you so, so much!

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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