Forum Discussion

karma's avatar
karma
Icon for Advocate II rankAdvocate II
4 years ago
Solved

categorical data scenario dax query

Hi folks, I hope you all are doing well and at your best health. I have a doubt in a scenario based question. I have a categorical data - with 8 different categories. I want to flag these categor...
  • truptis's avatar
    truptis
    4 years ago

    karma -> try this:

    Result = SWITCH([COLUMNNAME], "A", 1, "B", 2, "C",3, "D",4,"E",5,"F",6,"G",7,"H",8, 0)

     

    Please hit the thumbs up & mark it as a solution if it helps you. Thanks.