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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Ivan9485
Frequent Visitor

Calculate Percentage

Im working with this table that shows a list of workers, the columns are tasks where "1" represents that the worker was able to do it while "0" means they failed. I want to calculate their score in percentage as you can see in the last column. I've seen other related posts but im having a hard time understanding DAX. Any help is appreciated.

 

Capture.JPG

2 REPLIES 2
Anonymous
Not applicable

Hi @Ivan9485 ,

 

Is this the original table or a matrix visual?

Do you want a column or a measure?

 

Best Regards,

Jay

Nathaniel_C
Community Champion
Community Champion

Hi @Ivan9485 ,

Try this:


Let me know if you have any questions.

If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel

 

 

Score = 
var _task1 = MAX(Table(Task1)
var _task2 = MAX(Table(Task2)
var _task3 = MAX(Table(Task3)
var _task4 = MAX(Table(Task4)
var _task5 = MAX(Table(Task5)
Total = _task1 + _task2 +_task3 +_task4 +_task5
Percentage = Divide(Total,5)
return Percentage


 





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

Proud to be a Super User!




Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors