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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
SKEUK
New Member

Measure two columns

Hello all,

 

Apologies, I am incredibly new to Power BI and am working on a very basic model and I am currently stuck.

 

I have a risk register spreadsheet with a description of the risk, the status which is either 'open' or 'closed' and a Rating which is either 'catastrophic', 'high', 'medium' or 'low'.

 

I want to create a measure 'High Risk' which will capture open risks with a rating of catastrophic or high and then 'Low Risk' which will capture open risks with a rating of medium or low.

 

I cannot for the life of me figure out the correct formula for this and I imagine it is very simple.

 

Is anyone able to advise please?

1 ACCEPTED SOLUTION

Almost it looks like you are missing a column name in filter bit and to only show the open items:

High rating = CALCULATE(

COUNT('Risk Register 2025'[Status])

,'Risk Register 2025'[RatingColumn] IN {"Catastrophic", "High"}

,'Risk Register 2025'[Status] = "Open"

)

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

View solution in original post

4 REPLIES 4
SKEUK
New Member

So would it be like this?

High rating = CALCULATE(

COUNT('Risk Register 2025'[Status])

,'Risk Register 2025' IN {"Catastrophic", "High"}

)

 

I get the message 'The syntax for High is incorrect

Almost it looks like you are missing a column name in filter bit and to only show the open items:

High rating = CALCULATE(

COUNT('Risk Register 2025'[Status])

,'Risk Register 2025'[RatingColumn] IN {"Catastrophic", "High"}

,'Risk Register 2025'[Status] = "Open"

)

 


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

SamWiseOwl
Super User
Super User

Hi @SKEUK 

You can create a measure using the Calculate function. We can add a filter onto the column and using IN list out the items we want to return.

High rating =
Calculate(
              Count(table[RatingColumn])
             , table[Ratingcolumn] IN {"Catstrophic", "High"}
             ,table[Statuscolumn] = "Open"
)

Low rating =
Calculate(   Count(table[RatingColumn])
             , table[Ratingcolumn] IN {"Medium", "Low"}
             ,table[Statuscolumn] = "Open")


If you are happy with this answer please mark as a solution for others to find !

Kudos are always appreciated! Check out our free Power BI video courses.

Thank you!

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.

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.