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

filter multiple SQL directquery views with one on page filter

Hi

I have two separate SQL views, both contain the Close_Year and Close_Quarter, which are not unique, I want to add both sets of information to the same page and allow the data to be filtered, and visually changed from interacting with the panels that I add to the page. Trouble is I can seem to filter the two sources from the same filter. I can't join the tables as the data is not unique, and there are more than two fields to join. The data looks like 

Close_year, Close_quarter

2018            1

2018            2

2018            3

2018            4 

 

etc. 

Each view contains thousands of rows and contains both the Close_year and Close_quarter as int's. 

 

Any ideas ?

1 ACCEPTED SOLUTION

Hi 

I am using directquery. Think I solved this myself, by creating two separate tables, Close_Year, Close_Quarter and linking to the other views, on the Close_Year and Close_Quarter fields, then filtering via the links. Thanks.

View solution in original post

2 REPLIES 2
v-yuezhe-msft
Employee
Employee

@gazzap,

Do you connect to SQL Server using Direct Query mode in Power BI Desktop? Do you create new tables that contain unique values and then create relationship among these tables? What is your expected visual after joining tables? Please post the expected result here.

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.

Hi 

I am using directquery. Think I solved this myself, by creating two separate tables, Close_Year, Close_Quarter and linking to the other views, on the Close_Year and Close_Quarter fields, then filtering via the links. Thanks.

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.

Top Solution Authors