This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi all,
Trying to calculate a percentage between two tables with the below coding, and struggling to get an ouput. Wondered if anyone can point me in the direction of where I am going wrong?
I'm looking to generate a completion percentage per area, of staff completing a form. In essence two tables, first table ('Quiz Results') is the output of the form whereby staff are selecting the area they are based in during the form completion [Area]. Second table ('Staff Base') is a staff list with a field for the location the staff are based in [Base_Name].
AreaCompletion% =
DIVIDE(
CALCULATE(
COUNTROWS('Quiz Results'),
'Quiz Results'[Area] = "London"
),
CALCULATE(
COUNTROWS('Staff Base'),
'Staff Base'[Base_Name] = "London"
)
)
When applying to a card I'm just getting a blank output. Expected output would be 56.48%, as we have 431 responses with an area of "London" where there are 763 staff with a Base_Name of "London".
Thanks
Solved! Go to Solution.
@Mike35 Measure for the count of quiz results per area:
QuizResultsCount = COUNTROWS('Quiz Results')
Measure for the count of staff per base:
StaffCount = COUNTROWS('Staff Base')
Measure to calculate the completion percentage:
DAX
AreaCompletion% =
DIVIDE(
[QuizResultsCount],
[StaffCount]
)
Proud to be a Super User! |
|
@Mike35 Measure for the count of quiz results per area:
QuizResultsCount = COUNTROWS('Quiz Results')
Measure for the count of staff per base:
StaffCount = COUNTROWS('Staff Base')
Measure to calculate the completion percentage:
DAX
AreaCompletion% =
DIVIDE(
[QuizResultsCount],
[StaffCount]
)
Proud to be a Super User! |
|
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |