Forum Discussion
jsullivan928
2 years agoNew Member
Direct Query user needing to add a calculated column
I am working in Direct Query where I don't have access to the actual data due to SQL permission rights and the application I am pulling the data from won't allow any changes to the database. When I d...
- 2 years ago
Hi jsullivan928
Please create calculated column with Switch statement in Power BI desktop, not in Power Query.
Thanks
Pijush - 2 years ago
Hi jsullivan928 ,
Switch is a DAX expression. And currently you are in M query.
If you want to continue working in M Query, use the If-else statement.
If you want to continue using Switch, use the dax in a calculated column.
PijushRoy
2 years agoCommunity Champion
Hi jsullivan928
Please create calculated column with Switch statement in Power BI desktop, not in Power Query.
Thanks
Pijush