Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello Folks -
This is going to be a long message but I want to be sure I explain the data model, objective and problem well.
I have two tables: Subject that has Subject ID, Name and User Id. Second Table contains: User id and Name:
Subject Table
| Subject Id | Label | User id |
| 1 | History | A |
| 1 | History | B |
| 2 | Geography | A |
| 2 | Geography | B |
| 3 | Math | C |
| 3 | Math | D |
User
| User Id | Name |
| A | Joe |
| B | Jane |
| C | John |
| D | Jim |
I have two objectives - one is to find students enrolled in History, which I was able to do. Second objective is to identify students NOT enrolled in History. If I filter Label is not "History", I will get User id A aka Joe. But, as you can see Joe was enrolled in History. I am sure there is a smarter way to do this but I did the following:
Added a conditional column on Subject Table with condition: If History, populate 1 or populate 2. I then sorted the new column in ascending order.
I then want to do add a column on the User object that is equivalent of a vlook up from Subject table. Because vlook up finds the first value and the subject table was sorted, I should get 1 or 2 (enrolled in history or not). When I try to use related function, I do not see "Subject" table. Is it because "Subject" is on the many side of the relationship and how can I resolve this?
Solved! Go to Solution.
Ok. I was able to resolve this using Minx and related table 🙂
Ok. I was able to resolve this using Minx and related table 🙂
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 48 | |
| 35 | |
| 25 | |
| 23 |
| User | Count |
|---|---|
| 134 | |
| 110 | |
| 59 | |
| 39 | |
| 32 |