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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Finding how many days its been since a certain date in my report

Hello PowerBI Community!

     I have a report I am building right now and I am trying to figure out how I can calculate how many days it has been since a given date, for example if a service call was opened on 7/22/22 and its remained opened, how could I make it so I have a counter that says ok this call has been opened for X amount of days?

Best,

GC

1 ACCEPTED SOLUTION

asssuming the status is in the same table as this is a calculated column

 

days since opened =
CALCULATE ( DATEDIFF ( openeddate, NOW ()DAY ), status = "open" )





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




View solution in original post

4 REPLIES 4
SolomonovAnton
Responsive Resident
Responsive Resident

hello ! 

 

I think The function DATEDIFF will help you 
there description of it 

vanessafvg
Super User
Super User

you can create a calculated column that does that following

 

days since opened =
CALCULATE ( DATEDIFF ( openeddate, NOW ()DAY ) )

 

however what you would need to include in this is the condition that defines if its still open would that be a date that illustrated that ie no closed date or a status?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

Hi Vannesa! It would be a status.

Best.

GC

asssuming the status is in the same table as this is a calculated column

 

days since opened =
CALCULATE ( DATEDIFF ( openeddate, NOW ()DAY ), status = "open" )





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.