Forum Discussion

nicolast29's avatar
nicolast29
Helper V
2 years ago
Solved

filtering table not working

Hi

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

Here a link toa share file

filter matrix.pbix

 

thanks a lot

 

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


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

    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.

     

     

2 Replies

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


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

    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.