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

View all the Fabric Data Days sessions on demand. View schedule

Reply
Anonymous
Not applicable

Filter DISTINCT values in specific column after user interaction with bar chart

Hello,

 

I have a large SQL server database that consists of 60 million rows that I have imported using DirectQuery. This table contains duplicate records in one specific column that I would like to hide from a table view in my report. This large 'Detail' table is connected to a smaller 'Header' table with a many to one relationship using an ID field. 

 

In my report I would like to add a feature that lets the user select a bar from a bar chart with 'Header' table data which would filter a subset of the 'Detail' table. This subset of data will be shown as a table in my report. This works fine except that one column has duplicates which I would like to filter. In the below scenario I would like to filter the third and fourth row that has a duplicate ID and Task combination. I am importing the data using DirectQuery so I cannot remove duplicates using the Query Editor. 

 

Any help is greatly appreciated!

After selecting the bar with ID 386714 the connected Detail table shows all records with this ID.After selecting the bar with ID 386714 the connected Detail table shows all records with this ID.

 

ID           Task                Duration

386714start0
386714write_invoice15
386714write_invoice15
386714write_invoice15
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

Have you tried filtering the duplicates in direct query.  Ideally you should use a View which will remove duplicate records and use that as DirectQuery for your loading.

 

Cheers

 

CheenuSing 

View solution in original post

2 REPLIES 2
v-diye-msft
Community Support
Community Support

Hi @Anonymous ,

 

You can refer to the same case for reference: https://community.powerbi.com/t5/Desktop/Remove-duplicates-in-direct-query/td-p/238430

 

Best regards,
Dina Ye

Community Support Team _ Dina Ye
If this post helps, then please consider Accept it as the solution to help the other members find it more
quickly.
Anonymous
Not applicable

Hi @Anonymous ,

 

Have you tried filtering the duplicates in direct query.  Ideally you should use a View which will remove duplicate records and use that as DirectQuery for your loading.

 

Cheers

 

CheenuSing 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors