Forum Discussion

rocku2008_1985's avatar
3 years ago
Solved

case statement not working as expected in power BI

I have a table in ssms and on using the case statement, it is working as expected as shown: But doing the same thing in Power BI with addiing columns, conditional statement, it is not working ...
  • ryan_mayu's avatar
    3 years ago

    rocku2008_1985 

    you can try this

    = Table.AddColumn(#"Changed Type", "Custom", each if [Format] = "Percentage" then [value]*100 else [value])