The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello,
I have a Students table that lists each UserID value once.
I want to know in a new column in the Students table if the UserID field has any matching values in the Infractions table.
It can either be the UserID value or a 1 for a match or a 0 for a non-match.
In the Infractions table, there can be many rows or no rows at all that match the UserID field from the Student table.
PBIX file with two tables mentioned above
Click the download icon to save the file
Excel example of the result I am looking for.
Solved! Go to Solution.
Thank you for posting the data.
If you want to create a calculated column in the Students table, the existing relationship makes things reasonably straightforward.
NewCol = CALCULATE(COUNT(Infractions[Infraction]))
Let me know if that helps.
@HotChilli That worked perfectly! Thank you very much for your time and expertise. I like that it gave me a count of the infractions. Take care!
Thank you for posting the data.
If you want to create a calculated column in the Students table, the existing relationship makes things reasonably straightforward.
NewCol = CALCULATE(COUNT(Infractions[Infraction]))
Let me know if that helps.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
83 | |
73 | |
51 | |
42 |
User | Count |
---|---|
140 | |
112 | |
72 | |
64 | |
63 |