Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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!