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"
)
)
- Ritaf4 years agoResponsive Resident
Thank you!
- StalinRapaka2 years agoNew Member
Hi Kim, I have the similar scenario, however my table will contain only classification & measures(i.e., totals, %), but not the other Grouped fields (i.e., here the supplier name & year). When Im removing the supplier name & year from the given dashboard the classification is defaulting to "C". Any suggestions please....