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!
User | Count |
---|---|
84 | |
79 | |
71 | |
48 | |
43 |
User | Count |
---|---|
111 | |
54 | |
50 | |
40 | |
40 |