Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. 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"
)
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
19 | |
13 | |
10 | |
9 | |
9 |