Forum Discussion
Counting and Filtering Between Multiple Tables
- 1 year ago
Please accept my apologies Poojara! Then you are way too professional in your approach and managed to convinced me it was automated.
Sincerely, your time and help is much appreciated.I was playing around with the filters and I believe I may have encountered something that has worked - but I do not really understand why.
The thing I changed was the FILTER for the table input for SUMMARIZE. I also changed the table from 'training history' to 'allocated users'.# Allocated Users Completed = COUNTROWS( FILTER( SUMMARIZE( FILTER('Allocated Users','Allocated Users'[Make] IN DISTINCT(Curriculum[Make])) ,USERS[User - User ID] ,"Completed", CALCULATE(COUNTA('Training History'[User ID]),FILTER('Allocated Users','Allocated Users'[Make] IN DISTINCT(Curriculum[Make]))) ,"Total # Courses", [Total Courses] ,"Percentage", DIVIDE(COUNTA('Training History'[User ID]),[Total Courses]) ) , [Percentage]=1 ) ) + 0I'll await your response and see if you can validate the solution.
Hi Poojara,
Thank you so much for replying to my request!
May I kindly request some additional information on your proposed solutions? I just tried putting the code in for both suggestions and they do not appear to work.
There are few things which I think may be stopping it from working:
- There is no "Make" column in the 'Training History' table.
- Cannot equate 'Training History' to 'Allocated Users' as they are not related
- There is no "Percentage Completion" measure or column
Also, I do not mean to be rude, but was this solution produced in Chat GPT? The response is structured eerily like an AI model and the code is reflective of it as well.
Hi Namdu_PAU
Thank you so much for the genuine feedback, it's not a AI response, as I didn't opened the PBIX file, I just saw the screenshot, also, I was working on a task as well so I guess I got mixed up.
Please allow me some time, will check all the attachments and will get back you you.
Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
Please Subscribe my YouTube for Beginners/Advance Concepts: https://youtube.com/@biconcepts?si=04iw9SYI2HN80HKS
- Namdu_PAU1 year agoFrequent Visitor
Please accept my apologies Poojara! Then you are way too professional in your approach and managed to convinced me it was automated.
Sincerely, your time and help is much appreciated.I was playing around with the filters and I believe I may have encountered something that has worked - but I do not really understand why.
The thing I changed was the FILTER for the table input for SUMMARIZE. I also changed the table from 'training history' to 'allocated users'.# Allocated Users Completed = COUNTROWS( FILTER( SUMMARIZE( FILTER('Allocated Users','Allocated Users'[Make] IN DISTINCT(Curriculum[Make])) ,USERS[User - User ID] ,"Completed", CALCULATE(COUNTA('Training History'[User ID]),FILTER('Allocated Users','Allocated Users'[Make] IN DISTINCT(Curriculum[Make]))) ,"Total # Courses", [Total Courses] ,"Percentage", DIVIDE(COUNTA('Training History'[User ID]),[Total Courses]) ) , [Percentage]=1 ) ) + 0I'll await your response and see if you can validate the solution.