Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
Hello, everyone! It's my first post here, sorry if there's anything wrong in the request.
I need to count the total amount of preventive work orders executed by machine and date in one table, but only if it was scheduled in other table so I can get the % of scheduled and executed. Some of the preventives executed aren't scheduled, so these ones can't be counted. I've made some research and tried to work it out with 2 or 3 different methods, but none did worked properly.
Here's some dummy data with the simplified structure of both tables and the expected result:
So far I haven't tryed doing it through Power Query, but I'll accept suggestion for that too.
Would the following measures help?
Scheduled =
CALCULATE(
COUNTROWS( 'Schedule' ),
'Schedule'[Data] IN VALUES( 'Date'[Date] )
)
Completed =
CALCULATE(
DISTINCTCOUNT( 'WorkOrders'[Machine] ),
'WorkOrders'[Date] IN VALUES( 'Schedule'[Data] )
)
Compliance % =
DIVIDE(
[Completed],
[Scheduled]
)
Let me know if you have any questions.
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information. Do not include anything that is unrelated to the issue or question.
Please show the expected outcome based on the sample data you provided.
Need help uploading data? https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
78 | |
52 | |
38 | |
35 |
User | Count |
---|---|
93 | |
73 | |
55 | |
52 | |
46 |