Forum Discussion
android1
Post Patron
10 years agoTime difference in hours
Hi, I'm trying to calculate the diiference in hours between two date/time columns. When I use DateDiff I am not able to use the two columns below.
Vvelarde
Community Champion
10 years agoDATEDIFF(TablaHoras[TimeFrom];TablaHoras[TimeTo];HOUR)
android1
Post Patron
10 years agoThanks for both answers. I'm getting the below error for both;
- Vvelarde10 years ago
Community Champion
DateDiff_Big...In PowerBI this function doesnt work.
Your Measure should be look like this:
MeasureName=DateDiff(xxxxxx,xxxxxx,Hour)
- android110 years ago
Post Patron
I'm confused. When I type DateDiff( I don't get the TimeFrom or TimeTo columns for selection in the measure.
If I use a calculated column I do but get the above error.