Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi,
I am a newbie to Power BI and I am trying to open Table 2 by clicking table 1 cell.
The table looks like:
Table 1 Table 2
IDCode | User | Date IDCode | FirstName | SupplyCode | Country
1 Mat 2018-01-01 1 Mat 00110011 USA
2 John 2017-01-09 1 Mat 98765445 Australia
1 Mat 2018-04-08 1 Mat 8765779 Canada
3 Jazz 2019-01-01 3 Jazz 6666666 USA
So basically when I click 'IDCode' 1 in Table 1, Table 2 should show all the three values with 'IDCode' 1 in Table 2.
I created a measure just to first get the firstName in Table 2
My query is
FirstName = LOOKUPVALUE('Table2'[FirstName], 'Table2'[IDCode], SELECTEDVALUE('Table1'[IDCode]))
But this query returns only distinct value, not sure how do I get all the three values.
I also tried creating a custom column
FirstName = CALCULATE (VALUES('Table2'[FirstName]),FILTER ( 'Table2', 'Table2'[IDCode] = SELECTEDVALUE(Table1[IDCode] )))
But this is giving me circular dependency detected error.
Is there any other way to get the expected result?
Solved! Go to Solution.
Hi @anv
You may create the relationship as many to many in relationship view.Attached the sample file.
Regards,
Cherie
Hi @anv
You may create the relationship as many to many in relationship view.Attached the sample file.
Regards,
Cherie
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
82 | |
70 | |
60 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |