Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. 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"
)
User | Count |
---|---|
16 | |
15 | |
14 | |
12 | |
11 |
User | Count |
---|---|
19 | |
15 | |
14 | |
11 | |
9 |