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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
nicolast29
Helper V
Helper V

filtering table not working

Hi

May be i need holidays, but i don't understand why my slicer didn't filter my table ...

nicolast29_0-1712929773370.png

Here a link toa share file

filter matrix.pbix

 

thanks a lot

 

1 ACCEPTED SOLUTION
Sergii24
Super User
Super User

Hi @nicolast29, this issue seems to be related to the use of "Date Hierarchy":

Sergii24_0-1712930870766.png


If we replace date hierarchy with any other column it works perfectly fine!

Sergii24_1-1712930957751.png

Instead, if you want to use "Auto date/time" hierarchy, you need to add any column of DIM_Calendrier to the visual.

"Auto date/time" creates in a background a hidden date table for you, but it looks like that created relationship is one-to-many from the hidden table to "🗓️ DIM_Calendrier". So you can use the hidden one as a filter, but when adding it to a visual, you need at least one column from "🗓️ DIM_Calendrier", so PowerBI understands that you want to filter "🗓️ DIM_Calendrier" and not the hidden table (which you can't because of single direction of relationship).

As a general reccomendation, I would suggest to turn-off "Auto date/time" for all pbix files and use directly columns of your Calendar table.

Sergii24_2-1712931067707.png

 

 

View solution in original post

2 REPLIES 2
nicolast29
Helper V
Helper V

thanks a lot

Sergii24
Super User
Super User

Hi @nicolast29, this issue seems to be related to the use of "Date Hierarchy":

Sergii24_0-1712930870766.png


If we replace date hierarchy with any other column it works perfectly fine!

Sergii24_1-1712930957751.png

Instead, if you want to use "Auto date/time" hierarchy, you need to add any column of DIM_Calendrier to the visual.

"Auto date/time" creates in a background a hidden date table for you, but it looks like that created relationship is one-to-many from the hidden table to "🗓️ DIM_Calendrier". So you can use the hidden one as a filter, but when adding it to a visual, you need at least one column from "🗓️ DIM_Calendrier", so PowerBI understands that you want to filter "🗓️ DIM_Calendrier" and not the hidden table (which you can't because of single direction of relationship).

As a general reccomendation, I would suggest to turn-off "Auto date/time" for all pbix files and use directly columns of your Calendar table.

Sergii24_2-1712931067707.png

 

 

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

Find out what's new and trending in the Fabric Community.