Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hi Folks,
Could you help in troubleshooting this command?
The error is:
A single value for column 'Issue Type' in table 'Table one' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.
measure_type_color = SWITCH( 'Table one'[Issue Type], "Change Request", "#3C4E4B", "Defect", "#466964", "Issue", "#333333", "Requirement", "#0D6ABF", "Story", "#E27C7C", "#503F3F" ) |
Solved! Go to Solution.
Hi, @aherabit
Wrap your issue type in min() or max()
measure_type_color =
SWITCH(
Min('Table one'[Issue Type]),
"Change Request", "#3C4E4B",
"Defect", "#466964",
"Issue", "#333333",
"Requirement", "#0D6ABF",
"Story", "#E27C7C",
"#503F3F"
)
thank you!
It worked with Min().
Hi, @aherabit
Wrap your issue type in min() or max()
measure_type_color =
SWITCH(
Min('Table one'[Issue Type]),
"Change Request", "#3C4E4B",
"Defect", "#466964",
"Issue", "#333333",
"Requirement", "#0D6ABF",
"Story", "#E27C7C",
"#503F3F"
)
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
11 | |
11 | |
10 | |
9 | |
8 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
11 |