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

Multiple connections/datasets whch has same columns dynamic slection based on slicer selection

Hello Friends,

 

I am creating a dashboard by using direct query mode & the data has similar to the one below.

 

Dataset 1

 CountryAB

C

US1sddd
US2dmdfmfmmnfnmf

 

Dataset 2

 CountryAB

C

CA1sddd
CA2dmdfmfmmnfnmf

 

I am creating a dashboard that works for both datasets.

 

the moment i select us a visual or report will show from the dataset-1 & if I select CA a visual or report will show from the dataset-2.

 

I need help to do that.

 

Ay suggestions, please.

 

Thanks,

Naveen

5 REPLIES 5
Anonymous
Not applicable

Hello Yadong Fang,

 

Thanks for the help,

 

I have tried this earlier and it's working very slowly since appended query will take a long time to load since it's huge data.

 

The appended query will be again import mode, & i have to create Direct query mode only.

 

My assumption is can we do it by creating the measures?

 

Thanks,

Naveen

 

 

Hi @Anonymous ,

 

Please try following DAX:

Table = UNION('Dataset1','Dataset2')

vyadongfmsft_0-1662968304353.png

 

Best regards,

Yadong Fang

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

v-yadongf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Has your problem been solved? If solved, please consider Accept it as the solution to help the other members find it more quickly.

 

Best regards,

Yadong Fang

v-yadongf-msft
Community Support
Community Support

Hi @Anonymous ,

 

Please append two tables in Power Query:

vyadongfmsft_0-1662603797757.png

You will get a table like this:

vyadongfmsft_2-1662603855251.png

Then you can implement dynamic selection based on slicer

vyadongfmsft_1-1662603822362.png

Best regards,

Yadong Fang

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

Anonymous
Not applicable

pnkrmba_1-1662973829576.png

I'm getting the above error

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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

MayPowerBICarousel

Power BI Monthly Update - May 2024

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

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.