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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.