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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

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
Microsoft Employee
Microsoft 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
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors