Forum Discussion
New column counting values from two different tables
- 5 years ago
Hi rgalvez ,
You can create the following calculated column:
Attempts = SWITCH(Enrollments[Type],"A",CALCULATE(COUNTROWS(Quiz),FILTER(Quiz,Quiz[UserID] = EARLIER(Enrollments[UserID]))),"B",CALCULATE(COUNTROWS(Excersise),FILTER(Excersise,Excersise[UserID] = EARLIER(Enrollments[UserID]))))+0If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
rgalvez you can simply add two measure and use it in the table visual
Count Attempts = COUNTROWS ( TableAttempt )
Count Exercise = COUNTROWS ( TableExercise )
To visualize, use table visual, put column from user table and above measures.
Check my latest blog post Compare Budgeted Scenarios vs. Actuals I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!
⚡Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.⚡
Thanks for your reply!
I don't think this option helps. I need the two measures in the table, not in the view.