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

Table is giving all values even after applying slicers (One to one relationship)

Hi,

I have two tables with one to one relationship, I am trying to create a view with a few columns from one of the tables and trying to make a slicer from the other table, in the table view I have a few columns (eg EMP ID) as is from one side of relationship & few measures.

When I apply a filter, I have all the values in the table with "0" values calculated against the EMP IDs ( which should be filtered out ideally using a slicer).

Can anyone help me with this?

1 ACCEPTED SOLUTION

Hi @Abhishek512 ,

According to your description, I reproduce your problem.

For example the table name of the slicer column is Slicer, then if you use ALL funtion in the measure like below:

 

Measure =
CALCULATE (
    COUNTROWS ( 'Field' ),
    FILTER ( ALL ( 'Slicer' ), 'Slicer'[Column] = "xyz" )
)

 

The slicer will not filter the visual.

vkalyjmsft_0-1661134211116.png

I attach my sample below, you can download it to see if it is the same as your scenario.

 

Best Regards,
Community Support Team _ kalyj

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

View solution in original post

4 REPLIES 4
v-yanjiang-msft
Community Support
Community Support

Hi @Abhishek512 ,

would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirment will find the solution quickly and benefit here, thank you!

Best Regards,
Community Support Team _ kalyj

Abhishek512
New Member

Yes, without measure it is filtering fine.

The measure involves the sum of a field from a table in a One-to-one relationship with the Filter Table.

Measure - Calculate(Countrows([Field]),Filter([FilterField]="xyz"))

Hi @Abhishek512 ,

According to your description, I reproduce your problem.

For example the table name of the slicer column is Slicer, then if you use ALL funtion in the measure like below:

 

Measure =
CALCULATE (
    COUNTROWS ( 'Field' ),
    FILTER ( ALL ( 'Slicer' ), 'Slicer'[Column] = "xyz" )
)

 

The slicer will not filter the visual.

vkalyjmsft_0-1661134211116.png

I attach my sample below, you can download it to see if it is the same as your scenario.

 

Best Regards,
Community Support Team _ kalyj

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

v-yanjiang-msft
Community Support
Community Support

Hi @Abhishek512 ,

Have you tried that if you don't put the measure in the visual, will the EMP ID column be filtered out? If so, what's the formula of the measure, is it related with the column in the slicer?

 

Best Regards,
Community Support Team _ kalyj

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.