Forum Discussion
AliceW
Power Participant
6 years agoConvert a multiple IF formula from DAX to M
Hi folks, I am terrible at M and I really need this formula in the Power Query so that I can then unpivot the table. Could anybody help me, please? 2019-01 = SWITCH('Business'[Line], "Lyme", ...
lbendlin
Super User
6 years agoM is much simpler than DAX in this respect. All it has is and and or. No fancy switch syntax sugar.
Keep in mind that in Power Query your tables are not yet related. You either need to merge tables, or use custom column generator functions to lookup values in other tables.
Best would be to provide sample data for your row data source and business data source.