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
vadhikari
New Member

Use Slicer to dynamically get data from 2 tables

Hi All , 

 

I have 2 tables .

 

TABLE_A_EURO

TABLE_B_LCLCCY

 

I have created a dummy table "CURRENCY".

It has one field - "type".

It has 2 values "EURO" , "LOCAL".

 

If i select EURO , i want to get columns from TABLE_A_EURO & vice versa.

 

Is it possible ? Please help 

 

Thanks in advance.

2 REPLIES 2
v-yuezhe-msft
Employee
Employee

@vadhikari,

What are the fields in TABLE_A_EURO, TABLE_B_LCLCCY? I make a test using the following sample data.
1.JPG2.JPG

Merge the two tables into a new table based on Name field, then create a measure in the merged table using DAX below.

selectedValue = 
IF (
    ISFILTERED ( 'dummy table'[Type]) && HASONEVALUE ('dummy table'[Type]),
     if(LASTNONBLANK ('dummy table'[Type], 0 )="EURO",
   MAX(Merge2[EURO]),
   MAX(Merge2[TABLE_B_LCLCCY.LOCAL]) 
   )
  ,
     BLANK()
)

3.JPG


Regards,
Lydia

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

Hi , 

 

I have 2 tables 

 

TABLEA_EURO

TABLEB_LOCALCCY

 

I have created a dummy table "Currency" with field "type". it has 2 values - EURO & LOCAL.

I am using it a slicer , & based on EURO selection , i want to use TABLEA_EURO columns .

If LOCAL is selected in Slicer , then TABLEB_LOCALCCY columns should be used in the graphs.

 

Is it possible??

 

Thanks in advance.

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.