Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi there,
I am a power BI novice and have been struggling this morning to create a single column in a dashboard table that assesses a calculated score for each value in a single dimension.
The table I am working on looks like this:
Factor | Measure | GWB Measure | HWI Measure | JCS Measure | CAW Measure | WCS Measure | SAW Measure |
CAW | 8 | Lower QoWL | Higher QoWL | Lower QoWL | Lower QoWL | Average QoWL | Average QoWL |
GWB | 16.8 | Lower QoWL | Higher QoWL | Lower QoWL | Lower QoWL | Average QoWL | Average QoWL |
HWI | 12 | Lower QoWL | Higher QoWL | Lower QoWL | Lower QoWL | Average QoWL | Average QoWL |
JCS | 16 | Lower QoWL | Higher QoWL | Lower QoWL | Lower QoWL | Average QoWL | Average QoWL |
SAW | 4.4 | Lower QoWL | Higher QoWL | Lower QoWL | Lower QoWL | Average QoWL | Average QoWL |
WCS | 9.6 | Lower QoWL | Higher QoWL | Lower QoWL | Lower QoWL | Average QoWL | Average QoWL |
What I am trying to do is to have a single column that assesses the measure for each category depending on whether the measure falls between ranges (the ranges are different for each value). I have managed to do this by creating measures for each category separately but I cant seem to create 1 column that shows the 'assessment' for each value
So what i want is this:
Factor | Measure | Assessment |
CAW | 8 | Lower QoWL |
GWB | 16.8 | Lower QoWL |
HWI | 12 | Higher QoWL |
JCS | 16 | Lower QoWL |
SAW | 4.4 | Average QoWL |
WCS | 9.6 | Average QoWL |
The Measure is:
I am using this expression to calculate the assessments for each individual category, for for the GWB assessment:
Hi @Bennyboysmith ,
no need to create so many measures, just use SWITCH. Something like this:
Assessment =
VAR _measure = SELECTEDVALUE ( 'Table'[Measure] ) /* AVERAGE('Survey Data'[Score])*DISTINCTCOUNT('Category Groups'[QuestionID]) */
VAR _factor = SELECTEDVALUE ( 'Table'[Factor] )
RETURN
SWITCH (
TRUE (),
_factor = "GWB" && _measure <= 20, "Lower QoWL",
_factor = "GWB" && _measure >= 24, "Higher QoWL",
_factor = "HWI" && _measure <= 9, "Lower QoWL",
_factor = "HWI" && _measure >= 12, "Higher QoWL",
"Average QoWL"
)
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.
Check out my latest demo report in the data story gallery.
Stand with Ukraine!
Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/
Thank you!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
10 | |
10 | |
9 | |
6 |