Forum Discussion

pbiforum123's avatar
pbiforum123
Post Patron
3 years ago
Solved

Performance issue in the DAX. Please help!

IF( ISBLANK([2.01 QoQ]), "N", SWITCH(TRUE(), [2.01 QoQ] > -0.1 && [2.01 QoQ] < 0, "A", --"#F2B431", [2.01 QoQ] <= -0.1 , "R",--"#45BF61", [2.01 QoQ] >= 0, "G"--"#EF5353", )) Above DAX is ...
  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi pbiforum123 ,

    I have created a simple sample, please refer to my pbix file to see if it helps you.

    Create a column.

    Column 4 = 
    SWITCH (
        TRUE (),
        ISBLANK ( 'Table'[2.01 QoQ] ), "N",
        'Table'[2.01 QoQ] > -0.1
            && 'Table'[2.01 QoQ] < 0, "A",
        'Table'[2.01 QoQ] <= -0.1, "R",
        'Table'[2.01 QoQ] >= 0, "G"
    )

     

    How to Get Your Question Answered Quickly 

     

    If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

     

    Best Regards
    Community Support Team _ Polly

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.