Forum Discussion
Ritaf
4 years agoResponsive Resident
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 ...
- 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" ) )
Jihwan_Kim
4 years agoSuper User
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"
)
)
Ritaf
4 years agoResponsive Resident
Thank you!