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.
Hello! I haven't used Power BI in over a year and now trying to remember everything (its not easy!!) I created a calculated column to show the number of days between two dates:
Solved! Go to Solution.
@SandeA Same day means there is no difference hence it gives 0.
IF( above formula =0, above formula+1, above formula) use this to get 1 instead of 0
Proud to be a Super User!
[Datediff Adjusted] =
var Datediff = <your formula from above here>
var DatediffAdjusted = if( Datediff = 0, 1, Datediff )
return DatediffAdjusted
or, if you know that Datediff is always >= 0,
[Datediff Adjusted] =
var Datediff = <your formula from above here>
return max( Datediff, 1 )
@SandeA Same day means there is no difference hence it gives 0.
IF( above formula =0, above formula+1, above formula) use this to get 1 instead of 0
Proud to be a Super User!
I'm trying to modify my function to show 1 instead of 0. Here is what I have. Please help.
Thank you @VijayP ! I knew it was an easy solution but couldn't wrap my head around it!
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 |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |