Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hello!
I have the columns below (first Table) that I am trying to use to calculate a percentage of items completed "On-Time" per month and year by using the formula: # Items On-Time/ (# Items "On-Time" + "Late")*100. The second table shows what I am trying to accomplish here. Is it possible to do this in Power BI? Thank you in advanced!!
Solved! Go to Solution.
Hey,
I would create a measure like so (please be aware that it is not tested, because I didn't recreate a table from your example):
Compliance = CALCULATE( count('table'[eventid]) ,'table'[status] = "On-time" ) / CALCULATE( count('table'[eventid]), ALL('table'[status]) )
Hopefully this provides the solution you are looking for.
Regards
Tom
Hi,
Try this. In your Table visual, drag Year and Month in the Row labels. Write this measure
=CALCULATE(COUNTROWS(Data),Data[Enter Time Status]="On-Time")/COUNTROWS(Data)
Hope this helps.
Hey,
I would create a measure like so (please be aware that it is not tested, because I didn't recreate a table from your example):
Compliance = CALCULATE( count('table'[eventid]) ,'table'[status] = "On-time" ) / CALCULATE( count('table'[eventid]), ALL('table'[status]) )
Hopefully this provides the solution you are looking for.
Regards
Tom
Thank you for your help! This works!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
78 | |
76 | |
53 | |
37 | |
31 |
User | Count |
---|---|
101 | |
56 | |
51 | |
45 | |
40 |