Forum Discussion

Ritaf's avatar
Ritaf
Responsive Resident
4 years ago
Solved

Dynamic classification by measure

Hi, I have a purchases table and suppliers table and want to classify every supplier by the value of purchases dynamically depending on the selected period. I tried to add a calculated column to a ...
  • Jihwan_Kim's avatar
    4 years ago

    Hi,

    I am not sure if I understood your question correctly, but please check the attached pbix file.

    I created a measure like below, and inserted into the table visualization.

     

    clasification measure: =
    IF (
        [totalValue] <> BLANK (),
        SWITCH (
            TRUE (),
            [totalValue] > 0
                && [totalValue] < 45, "A",
            [totalValue] > 46
                && [totalValue] < 65, "B",
            "C"
        )
    )