cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
JEFF32788 Frequent Visitor
Frequent Visitor

Im very new to Power BI and i'm sure this is fairly simple but i can't figure it out.

How would i create a measure to subtract from the first row of start date / start time from the last row of end date / end time.

I removed the duplicates and created a index column to come up with a whole number but im in need of a decimal number of total days from start to finish. Thanks in advance!

 

 

Start - End dates.PNG

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Nathaniel_C Super Contributor
Super Contributor

Re: Im very new to Power BI and i'm sure this is fairly simple but i can't figure it out.

Hi @JEFF32788 ,

Is this what you are looking for? I merged the 2 columns for start and end to get a datetime, then added a column with Date diffTime.PNG

Time Diff = Divide(DATEDIFF(Min('start'[Start]),MAX('start'[End]),HOUR),24)


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

View solution in original post

2 REPLIES 2
Highlighted
Nathaniel_C Super Contributor
Super Contributor

Re: Im very new to Power BI and i'm sure this is fairly simple but i can't figure it out.

Hi @JEFF32788 ,

Is this what you are looking for? I merged the 2 columns for start and end to get a datetime, then added a column with Date diffTime.PNG

Time Diff = Divide(DATEDIFF(Min('start'[Start]),MAX('start'[End]),HOUR),24)


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos are nice too.
Nathaniel

View solution in original post

JEFF32788 Frequent Visitor
Frequent Visitor

Re: Im very new to Power BI and i'm sure this is fairly simple but i can't figure it out.

Thanks!

Helpful resources

Announcements
Can You Solve These Challenge

Challenge: Can You Solve These?

Find out how to participate in the first Power BI 'Can You Solve These?' challenge.

New Badges

Incoming: New and Improved Badges

Exciting news: We've given our badges an overhaul and added brand news ones.

Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 495 members 3,885 guests
Please welcome our newest community members: