Forum Discussion
bikelley
Helper IV
5 years agoHelp with converting DAX to M in most efficient way
Hello, I have an M query that needs to changes, but I am not familiar with M. The issue is this query relying a lot on [Region]. I want to minimize the use of this column. I want to leverage ...
- 5 years ago
bikelley Maybe:
= Table.AddColumn(#"Replaced Value1", "Region Adj", each if [Account.Sub_Region__c] = "iMETA" then "iMETA" else if [Account.Region__c] = "EMEA" then "EUR" else if Text.Contains([Region],"META") or Text.Contains([Region],"EMEA") then "EUR" else if [Account.Region__c] = "" and [Account.Sub_Region__c] ="" then [Region] else [Account.Region__c])
Greg_Deckler
Community Champion
5 years agobikelley Maybe:
= Table.AddColumn(#"Replaced Value1", "Region Adj",
each if [Account.Sub_Region__c] = "iMETA" then "iMETA"
else if [Account.Region__c] = "EMEA" then "EUR"
else if Text.Contains([Region],"META") or Text.Contains([Region],"EMEA") then "EUR"
else if [Account.Region__c] = "" and [Account.Sub_Region__c] ="" then [Region]
else [Account.Region__c])bikelley
Helper IV
5 years agoGreg_Deckler Thank you so much, I think this should work, I will get back to you asap. After I check on this. Again, I truly appreciate your help.