Forum Discussion
mmoizk
Helper III
10 years agoCombining 2 different if statements in one
Trying to calculate days bucket for 2 dates against today's date. For example TargetStartdate and TargetEndDate. I did my dax for Start and end sperately and its working fine but I need to combine th...
Sean
Community Champion
10 years agoALL calculations are in PBI!
Those are Calculated Columns in PBI!
mmoizk
Helper III
10 years agoExactly , i was looking for what calculation were used to calcuate (Basically the formula ) did you use DateDiff or 1*(StartDate - today())
- TealCanady10 years ago
Advocate II
Mmoizk,
Looks like Sean's solution is the only way to go; why on earth they limit datediff this way in DAX i can only guess. This should work for you sorry for the misleading post; never would have guessed on that limit (spent to much time in SQL).
Column:
DaysSinceStart = TMPlan[Target Start Date] - TODAY()Teal
- TealCanady10 years ago
Advocate II
mmoizk,
I was actually asking for you calculation that was failing on datediff.Teal
- mmoizk10 years ago
Helper III
here you go Teal