Forum Discussion
jamiers
Helper I
3 years agoAdd New Columns into Power Query instead of Power BI Desktop
I have two new columns that I am putting into each Power Query table on the Power BI Desktop side and I would rather do this in Power Query. I was wondering if there would be a way to accomplish thi...
tackytechtom
Most Valuable Professional
3 years agoHi jamiers ,
This should be possible in Power Query M. It is just a little bit of another syntax. For instance IF(ISBLANK('*MergedIDCDMH'[GAP-IDC/DMH.GAP IDC/ DMH/]))... would translate to if [GAP-IDC/DMH.GAP IDC/ DMH/] = null then....
Here an example that should get you further on how to rewrite the code from DAX:
Solved: Switch statement in power query - Microsoft Power BI Community
(Unfortunately, there is no built-in SWITCH function in Power Query)
Let me know if this helps 🙂
/Tom
https://www.tackytech.blog/
https://www.instagram.com/tackytechtom/