Forum Discussion
reendzz98
4 years agoHelper I
Switch statement
I want to create another column - Tier in my dashboard and below is the switch statement that I have queried:
tier_testing = SWITCH(
OFFICE[Sales] > 500, "Tier 1",
OFFICE[Sales] >= 300 && SMS_TBL_MeSSP_AQIR_Fact_Infotech_Financials[Total Sales Measure] < 500, "Tier 2",
OFFICE[Total Sales Measure] >= 200 && OFFICE[Sales] < 300, "Tier 3",
OFFICE[Total Sales Measure] >=0 && OFFICE[Sales] < 200, "Tier 4")The problem is that, whan I insert this measure in to the table, it cant read, and I think most probably because I didnt include the currency RM in my DAX. Anyone can help me to resolve this problem? I want to know how to include the currency in my DAX query.
tamerj1 Thank you for your respond. I have figured out the way to do it using multiple IF statement