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 have a detail table linked to another table. The other table acts like a lookup table, so the link provides a description of the value it's linked to.
Is there a way i can change the data model so that instead of linking to lookup table A, it links to lookup Table B instead for example, when I press a button on the tab? Then switch back to the original relationship with a different button.
Solved! Go to Solution.
Hi @Anonymous ,
Has a relationship been created between table A and table B? If a relationship is created, you can refer to the following blog to query the data between different tables.
Get a field value from a related table in Power BI: DAX RELATED Function Explained
POWER BI AND DAX – USERELATIONSHIP TO WORK WITH MULTIPLE DATES
Otherwise, you can use the LOOKUPVALUE function to implement the query.
Find The Data Value using LookupValue DAX Function in Power BI; Simple and Useful
LOOKUPVALUE – assigning of values from other table without relation (DAX – Power Pivot, Power BI)
Best Regards
Hi @Anonymous ,
Has a relationship been created between table A and table B? If a relationship is created, you can refer to the following blog to query the data between different tables.
Get a field value from a related table in Power BI: DAX RELATED Function Explained
POWER BI AND DAX – USERELATIONSHIP TO WORK WITH MULTIPLE DATES
Otherwise, you can use the LOOKUPVALUE function to implement the query.
Find The Data Value using LookupValue DAX Function in Power BI; Simple and Useful
LOOKUPVALUE – assigning of values from other table without relation (DAX – Power Pivot, Power BI)
Best Regards
no, but you do can use userrelantionship dax function to create dax that behavie with a spcific relantion and use a select value to change the dax from one relantionship to another, you will have to set up both relantionship between the tables at least as incative also
Proud to be a Super User!
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 |
---|---|
97 | |
96 | |
81 | |
74 | |
66 |
User | Count |
---|---|
129 | |
106 | |
106 | |
86 | |
72 |