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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July PBI25 Carousel

Power BI Monthly Update - July 2025

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

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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