Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Converting measure into calculated column

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.

4 REPLIES 4
Anonymous
Not applicable

How can I use this measure in a bar chart to show number of items in respective status

Pragati11
Super User
Super User

HI @Anonymous ,

 

Can you share your measure definition here please?

 

Best Regards,

Pragati Jain


MVP logo


LinkedIn | Twitter | Blog YouTube 

Did I answer your question? Mark my post as a solution! This will help others on the forum!

Appreciate your Kudos!!

Proud to be a Super User!!

Anonymous
Not applicable

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. 

Overall  Status =

SWITCH
(
    TRUE(),
    [Blank Type] > 0, "Template Missing",
    [Missing Criteria] > 0, " Criteria Missing",
    [Blank Due Date] > 0 , "Task(s) Missing",
    [Overdue] > 0 , "Overdue",
    [ Plan Overdue] > 0 , " Plan Overdue",
    [ Plan Found] > 0 , " Planned",
    [Due In 2 Weeks] > 0 , "Due in 2 Weeks",
    [Due In 4 Weeks] > 0 , "Due in 4 Weeks",
    [Due After 4 Weeks] > 0 , "Due after 4 Weeks",
    [Incomplete] > 0, "Gateway Key Task(s) Incomplete",  -- Incomplete Key Task
    [Exception] > 0, "Completed-With Exception(s)",
    "Completed"
)

 

 

Anonymous
Not applicable

Hi @Anonymous 

You can refer to the following solution.

1.Put the status to a new table

e.g 

vxinruzhumsft_0-1693290581882.png

 

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

vxinruzhumsft_1-1693290709580.png

 

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.

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.