The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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"
)
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
20 | |
18 | |
17 | |
15 | |
13 |
User | Count |
---|---|
39 | |
32 | |
22 | |
19 | |
18 |