Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
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 |
---|---|
97 | |
76 | |
76 | |
47 | |
26 |