The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
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.