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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
AleksandrMe
Resolver I
Resolver I

Percentage between two columns

Good day, 

 

I have two tables, related to each other by fist column (name of the source file). I'm looking for measure to show me how many "RISK and HIGH RISK" checks were done comparing to "none or standard". Result should be in procents and filtered by year (2021)

 

SOURSE FILE NAMEREASON FOR CHECK   SOURSE FILE NAMEDate of Check
1none  12020
2risk  22020
3high risk  32021
4none  42021
5standard  52021
6risk  62021

 

For example in 2021 there were 4 checks where two of these were (Risk/High Risk) - final result is 50% in 2021. 

 

Thnaks

Aleks 

1 REPLY 1
DataInsights
Super User
Super User

@AleksandrMe,

 

Try these measures:

 

Check Count = COUNT ( CheckReason[SOURSE FILE NAME] )

Check Percent = 
VAR vNumerator =
    CALCULATE (
        [Check Count],
        CheckReason[REASON FOR CHECK] IN { "risk", "high risk" }
    )
VAR vDenominator = [Check Count]
VAR vResult =
    DIVIDE ( vNumerator, vDenominator )
RETURN
    vResult

 

DataInsights_0-1626043175952.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.