Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
Anonymous
Not applicable

use different table to show data

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.

 

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-yiruan-msft
Community Support
Community Support

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

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
StefanoGrimaldi
Resident Rockstar
Resident Rockstar

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





Did I answer your question? Mark my post as a solution! / Did it help? Give some Kudos!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.