cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RichardT_78
Helper I
Helper I

Elapsed Days

 

Hi I am new to power BI 

 

I have created a flow to update a power BI dataset and then created a report from it.

All has worked well. 

 

My time stamp is  shown as: 03/27/20 12:33:46 PM from the microsoft form.

I need to create a todays date to calculate the days elapsed since a responce was last recorded..

 

Looking at DATEDIFF etc it should be reasonabley easy, but i cant use power bi desktop to make a custom table as its greyed out.

greyed out.PNG

 

Table on my report below which needs a third colume with the days elapsed

Capture1.PNG

 Do i need to sperate the time as the mark as date table is all greyed out as well?

Is there a visual that already exsists for this task?

condtional formating maybe one to highlight x amount of days as bands but i cant in the current format.

 

Any help would be much appricated. 

 

Richard 

 

 

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @RichardT_78 

 

You can create a measure like 

 

Measure = DATEDIFF( SELECTEDVALUE( table[column] ), TODAY() or NOW(), DAY )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

2 REPLIES 2
Mariusz
Community Champion
Community Champion

Hi @RichardT_78 

 

You can create a measure like 

 

Measure = DATEDIFF( SELECTEDVALUE( table[column] ), TODAY() or NOW(), DAY )

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Perfect and very simple thanks.

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

MPPC 2023 PBI Carousel

Power Platform Conference-Power BI and Fabric Sessions

Join us Oct 1 - 6 in Las Vegas for the Microsoft Power Platform Conference.

Top Solution Authors