Forum Discussion
IghorFerreira
1 year agoNew Member
Count Rows From 2 Different Fact Tables Based in Date
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...
- 1 year ago
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.
v-kpoloju-msft
1 year agoCommunity Support
Hi IghorFerreira,
I wanted to check if you had the opportunity to review the information provided. Please feel free to contact us if you have any further questions. If my response has addressed your query, please accept it as a solution and give a 'Kudos' so other members can easily find it.
Thank you.
v-kpoloju-msft
1 year agoCommunity Support
Hi IghorFerreira,
I hope this information is helpful. Please let me know if you have any further questions or if you'd like to discuss this further. If this answers your question, please Accept it as a solution and give it a 'Kudos' so others can find it easily.
Thank you.