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.
Good afternoon everyone.
I'm going crazy trying to understand why Power bi shows me certain values in making the difference (in hours) between
two date fields.
I have a start date and an end date and I would like to calculate the difference in hours and then in working days (hours/8) using two calculated columns.
Where calculated columns are :
if(
IsBlank(cr35e_PRJ_BusFlow_tempifase[actualstart]) || ISBLANK(cr35e_PRJ_BusFlow_tempifase[actualend]) ||
cr35e_PRJ_BusFlow_tempifase[actualstart] > cr35e_PRJ_BusFlow_tempifase[actualend];
blank();
datediff(cr35e_PRJ_BusFlow_tempifase[actualstart];cr35e_PRJ_BusFlow_tempifase[actualend];HOUR)
)
Why?
Thanks in advance!
Solved! Go to Solution.
@AndreaPRJ maybe dumb question, but given these are calculated columns and you're pulling them into a visual, what is the aggregation you have set on the "Difference in HH" column? (sum, average, do not summarize, etc.)
And, relatedly, are "actualstart" and "actualend" unique?
What I'm getting at here, is could those values you're seeing in "Difference in HH" actually be the sum of numerous records...
@AndreaPRJ maybe dumb question, but given these are calculated columns and you're pulling them into a visual, what is the aggregation you have set on the "Difference in HH" column? (sum, average, do not summarize, etc.)
And, relatedly, are "actualstart" and "actualend" unique?
What I'm getting at here, is could those values you're seeing in "Difference in HH" actually be the sum of numerous records...
the question was not stupid ... it was a trivial mistake and I thank you!
It's Friday, I need a rest 🙂 bye!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
107 | |
98 | |
78 | |
66 | |
53 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |