Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Good morning, everyone,
I have a column in my report called STATUS, which counts 3 values: "OUT OF DEADLINE", "NO DEADLINE" and "ON DEADLINE".
I'm trying to create a card that indicates the percentage of "ON DEADLINE" in relation to the total. But I can't do it. Does anyone have any idea? It needs to be done using the card view.
I managed to get it to calculate, but by counting. Not by percentage.
Medida = CALCULATE(COUNTA('Relatório SLA'[SITUACAO]),'Relatório SLA'[SITUACAO] IN { "NO PRAZO" })
Thank you in advance for your time, translated by Google translator, sorry for any mistakes.
Here is a brief example:
TRANSLATION
SITUAÇÃO = SITUATION
NO PRAZO = ON DEADLINE
SEM PRAZO = NO DEADLINE
FORA DO PRAZO = OUT OF DEADLINE
Solved! Go to Solution.
@apolo Create a measure to count the total number of statuses.
Create a measure to count the number of "ON DEADLINE" statuses.
Create a measure to calculate the percentage of "ON DEADLINE" statuses.
TotalStatus = COUNTA('Relatório SLA'[SITUACAO])
OnDeadlineCount = CALCULATE(COUNTA('Relatório SLA'[SITUACAO]), 'Relatório SLA'[SITUACAO] = "NO PRAZO")
OnDeadlinePercentage = DIVIDE([OnDeadlineCount], [TotalStatus], 0)
Proud to be a Super User! |
|
Hi @apolo ,
Thanks for reaching out to the Microsoft fabric community forum.
DAX code for percentage of "ON DEADLINE" in relation to the total.
Percentage On Deadline =
VAR TotalCount = CALCULATE(COUNTROWS('Relatório SLA'))
VAR OnDeadlineCount = CALCULATE(COUNTROWS('Relatório SLA'), 'Relatório SLA'[SITUACAO] = "NO PRAZO")
RETURN
IF(
TotalCount = 0,
0,
DIVIDE(OnDeadlineCount, TotalCount, 0)
)
After creating the measure, go to the "Modeling" tab in Power BI. Select the measure and choose the "Percentage" format.
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards
Hi @apolo ,
Thanks for reaching out to the Microsoft fabric community forum.
DAX code for percentage of "ON DEADLINE" in relation to the total.
Percentage On Deadline =
VAR TotalCount = CALCULATE(COUNTROWS('Relatório SLA'))
VAR OnDeadlineCount = CALCULATE(COUNTROWS('Relatório SLA'), 'Relatório SLA'[SITUACAO] = "NO PRAZO")
RETURN
IF(
TotalCount = 0,
0,
DIVIDE(OnDeadlineCount, TotalCount, 0)
)
After creating the measure, go to the "Modeling" tab in Power BI. Select the measure and choose the "Percentage" format.
If you find this post helpful, please mark it as an "Accept as Solution" and consider giving a KUDOS. Feel free to reach out if you need further assistance.
Thanks and Regards
Hi @apolo ,
Thank you for reaching out to the Microsoft Community Forum.
If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.
Thank you
Hi @apolo ,
Thank you for reaching out to the Microsoft Community Forum.
If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.
Thank you
Hi @apolo ,
Thank you for reaching out to the Microsoft Community Forum.
If my response has resolved your query, please mark it as the Accepted Solution to assist others. Additionally, a 'Kudos' would be appreciated if you found my response helpful.
Thank you
@apolo Create a measure to count the total number of statuses.
Create a measure to count the number of "ON DEADLINE" statuses.
Create a measure to calculate the percentage of "ON DEADLINE" statuses.
TotalStatus = COUNTA('Relatório SLA'[SITUACAO])
OnDeadlineCount = CALCULATE(COUNTA('Relatório SLA'[SITUACAO]), 'Relatório SLA'[SITUACAO] = "NO PRAZO")
OnDeadlinePercentage = DIVIDE([OnDeadlineCount], [TotalStatus], 0)
Proud to be a Super User! |
|
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 7 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |