Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi!
We have a simple problem, but the solution does not seem so simple.
We want to select one or multiple languages in a slicer and that the count of users speaking these languages shows the intersection. Meaning that if we select English and French in the slicer, we would see users who speak only English and French (not one or the other, as we are getting at the moment).
This screenshot is from a sample file I have created for the post.
We should be getting a count of 2, not 4, since only 2 users speak English and French.
The measure should be dynamic (not hard-coded). We found this suggestion online but it does not work completely as we only get the count of users when all languages are selected (1 user in this case):
That's all, any help on this would be much appreciated.
Thanks for your time!
Solved! Go to Solution.
I have found the solution for this, if anyone is interested -> https://www.youtube.com/watch?v=tONOosN1xAs
The model structure is:
The measure is:
I have found the solution for this, if anyone is interested -> https://www.youtube.com/watch?v=tONOosN1xAs
The model structure is:
The measure is:
@Anonymous check this video on my youtube channel and see if it helps.https://youtu.be/zS1IDl3DLak
Check my latest video on Filters and Sparklines https://youtu.be/wmwcX8HvNxc
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.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Hi, thanks for the quick reply.
I have tried it using your video but it does not fully work as it is not the exact same problem.
I need the count in the KPI card to be correct, so if we select English and French we would obtain 2 distinct IDs who speak both English and French.
This is the last DAX measure I obtained from following your video:
(using separated Language table for the slicer)