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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Anonymous
Not applicable

How to use 1 slicer to filter 2 line charts from different data sources

Hello, Im new to power Bi and currently im working with 2 data sets; one contains the daily positive cases and the other the negative cases for covid. They both are in 2 separated tables (i imported them from 2 dif csv files)

 

I have 2 line charts connected to their respective fields (positive and negative) I want to use a single "Country" slicer to filter the 2 line charts, but when I select the country field in the slicer to work with both datasets i get the following error... is there any suggestions on how to solve this?

 

jeanbook_0-1648407159381.png

 

thanks in advance!

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , Create a common country, date tables and use these data across common dimensions 

Bridge Table: https://www.youtube.com/watch?v=Bkf35Roman8&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=19

 

Country Dim

distinct(union(distinct(Table1[Country]),distinct(Table2[Country ])))

 

 

Why Time Intelligence Fails - Powerbi 5 Savior Steps for TI :https://youtu.be/OBf0rjpp5Hw
https://amitchandak.medium.com/power-bi-5-key-points-to-make-time-intelligence-successful-bd52912a5bd4
To get the best of the time intelligence function. Make sure you have a date calendar and it has been marked as the date in model view. Also, join it with the date column of your fact/s. Refer :radacad sqlbi My Video Series Appreciate your Kudos.

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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