Forum Discussion
Switch Statement Not Working
- 1 year ago
It seems Power BI needed an update, and then my original statement worked again.
Thank you for the time taken to review.
Hello kristi_in_heels
try this
TG EXE Budget Before Today ALL =
SWITCH (
TRUE (),
MAX('All Projects'[ProjectPhaseDescription])="FS" && NOT ISBLANK(MAX('All Projects'[EXE - Budget])) && MAX('All Projects'[EXE - Budget])<TODAY(), 1,
MAX('All Projects'[ProjectPhaseDescription])="PFS" && NOT ISBLANK(MAX('All Projects'[EXE - Budget])) && MAX('All Projects'[EXE - Budget])<TODAY(), 1,
MAX('All Projects'[ProjectPhaseDescription])="Not Started" && NOT ISBLANK(MAX('All Projects'[EXE - Budget])) && MAX('All Projects'[EXE - Budget])<TODAY(), 1,
MAX('All Projects'[ProjectPhaseDescription])="CON" && NOT ISBLANK(MAX('All Projects'[EXE - Budget])) && MAX('All Projects'[EXE - Budget])<TODAY(), 1,
0
)
Thanks,
Pankaj Namekar | LinkedIn
If this solution helps, please accept it and give a kudos (Like), it would be greatly appreciated.
Thank you for your reply.
Unfortunately the suggestion does not work either.
I did wonder if blank cells would be causing the issue, but I updated the data with dummy information to ensure there are no blank cells in the column and this still didn't work.