Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more.
Get startedGrow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric 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!
User | Count |
---|---|
86 | |
82 | |
68 | |
65 | |
55 |
User | Count |
---|---|
123 | |
100 | |
90 | |
83 | |
66 |