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,
I am having issue to use measure in chart , filter visuals. Measure is giving me the correct result but I need to use it as bar chart, how to convert measure to calculated column.
How can I use this measure in a bar chart to show number of items in respective status
Thanks for responding.
I have individaul measures where the calculation has been done and then there is a "Overall Status" measure where I am using Switch to use individual measures to return the result.
Hi @Chaithrar
You can refer to the following solution.
1.Put the status to a new table
e.g
2.Then create the measure
e.g
Switch_measure =
VAR a =
ADDCOLUMNS (
'Table (2)',
"judge",
SWITCH (
TRUE (),
[Sum] >= 10
&& [Sum] < 40, "a",
[Sum] >= 40
&& [Sum] < 60, "b",
[Sum] >= 60, "c"
)
)
RETURN
COUNTROWS ( FILTER ( a, [judge] IN VALUES ( 'Table'[Type] ) ) )
3.Put the status and measure to the related visual
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
77 | |
76 | |
44 | |
30 | |
26 |
User | Count |
---|---|
97 | |
91 | |
52 | |
47 | |
46 |