Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi @racheljeska
You can try the following
MEASURE =
VAR completedval =
CALCULATE (
COUNT ( table[status] ),
ALLSELECTED ( table ),
tale[status] = "Completed"
)
VAR alleval =
CALCULATE ( COUNT ( table[status] ), ALLSELECTED ( table ) )
RETURN
IF ( ISFILTERED ( table[status] ), 0, completedval / alleval )
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Thanks for the solution @Anonymous provided, and i want to offer some more information for user to refer to.
hello @racheljeska , based on the picture you have offered, your completedEval/allEval return a number type, but the "-" is text type,so it will cause the error, you need to change the if situation to the following.
IF (
NOT ( ISFILTERED ( 'All Incident Evaluation -OSHA'[Status] ) ),
completedEVAL / allEVAL
)
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Yolo Zhu,
The expression went through, but it is not displaying the same percent as in the pie graph:
Hi @racheljeska
Based on your description, please consider to change the calculated column to measure.
Measure =
VAR completedval =
CALCULATE (
COUNT ( table[status] ),
ALLSELECTED ( table ),
tale[status] = "Completed"
)
VAR alleval =
CALCULATE ( COUNT ( table[status] ), ALLSELECTED ( table ) )
RETURN
completedval / alleval
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi again,
It works:
But when I click "Overdue" and "Coming Due" is there a way for it to say 0%?
Hi @racheljeska
You can try the following
MEASURE =
VAR completedval =
CALCULATE (
COUNT ( table[status] ),
ALLSELECTED ( table ),
tale[status] = "Completed"
)
VAR alleval =
CALCULATE ( COUNT ( table[status] ), ALLSELECTED ( table ) )
RETURN
IF ( ISFILTERED ( table[status] ), 0, completedval / alleval )
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
This is exactly what I need! Thank you!!
I thought variables could only be used in a measure, not a calculated column.
--Nate
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 5 | |
| 4 | |
| 3 | |
| 2 | |
| 1 |
| User | Count |
|---|---|
| 11 | |
| 11 | |
| 5 | |
| 4 | |
| 3 |