Forum Discussion
Anonymous
5 years agoNot applicable
DAX Nested If Bucketing
Hello Team, I could not work out the formula into Power BI is there a limitation in the nested ifs? IF [Days] <30 THEN "<30 Days" ELSEIF [Days] >= 30 AND [Days] <= 69 THEN "30-69 Days" ELSE...
- 5 years ago
Anonymous , true need to use true() ,
Also this code for the new columns not measure. So hope you ar creating a new column
TomMartens
5 years agoSuper User
Hey Anonymous ,
there is no limitation in nesting, besides the fact that DAX doesn't know ELSEIF, for this reason you have to use the SWITCH function: SWITCH – DAX Guide
Hopefully, this provides ideas on how to tackle your challenge.
Regards,
Tom
Anonymous
5 years agoNot applicable
can you help why it's being considered wrong?
- amitchandak5 years agoSuper User
Anonymous , true need to use true() ,
Also this code for the new columns not measure. So hope you ar creating a new column