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.
lbendlin
1 year agoSuper User
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-Forum/ba-p/963216
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447523