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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Kristaps
Frequent Visitor

Two slicers with duplicate values

Kristaps_0-1716189518982.png

 

I wanted to use two slicers where one is for ‘’Session date’’ and the other one is for ‘’Drill name’’. So for example I want to set the first slicer on 01/012024 (date) and then in the other slicer I would choose which drill I want to show on columns. 

 

But I ran into problem when I refreshed that in the data I have duplicate values for the same date.

 

What could I do to sort this problem, and be able to switch the date and then in other slicer choose drill name on the same date? 

3 REPLIES 3
v-nuoc-msft
Community Support
Community Support

Hi @Kristaps 

 

According to the error message, I suggest you to remove the primary key of the "Session ID" column.

 

If your dataset allows, consider creating a new column in your data model that combines the "Session date" and "Drill name" into a unique identifier.

 

This can be done using Power Query or DAX, depending on your preference. This unique identifier can then be used in your slicers to ensure that each combination of date and drill name is unique.

 

Regards,

Nono Chen

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

Thanks,

I tried, but I don't know how to remove primary key of "session ID" column.

Can you help me on how to do that? 

Hi @Kristaps 

 

You need to go to the database and change the primary key.

 

Regards,

Nono Chen

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.