cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KatyaK
Helper I
Helper I

Interaction between date slicer and a calculated table

Hello everyone!

 

I have some issue with filtering on date.

When i try to filter the calculations in the table do not change according to the chosen timframe and even disappear.

The calculations in the visualized table are bulit from 2 fact tables that both are connected to dim_date table as well.

KatyaK_0-1627305484497.png

 

KatyaK_1-1627305615892.png

KatyaK_2-1627305814932.png

 

Do you have any suggestion to solve this? 

Thanks

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @KatyaK ;

I tested it, Since your Date type is Date type, and the  From DateTime and OD_create_datetime columns are date /Time type, they cannot be filtered by slicer. The following method is recommended.

1.delete the relationship

2.create a flag.

flag = IF(MAX([From DateTime])<MAX('slicer'[Date])&&MAX([From DateTime])>=MIN('slicer'[Date]),1,0)

3.apply it into filter.

vyalanwumsft_0-1627455467911.png

The final output is shown below:

vyalanwumsft_1-1627455502816.png

 

Best Regards,
Community Support Team_ Yalan Wu
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-yalanwu-msft
Community Support
Community Support

Hi, @KatyaK ;

I tested it, Since your Date type is Date type, and the  From DateTime and OD_create_datetime columns are date /Time type, they cannot be filtered by slicer. The following method is recommended.

1.delete the relationship

2.create a flag.

flag = IF(MAX([From DateTime])<MAX('slicer'[Date])&&MAX([From DateTime])>=MIN('slicer'[Date]),1,0)

3.apply it into filter.

vyalanwumsft_0-1627455467911.png

The final output is shown below:

vyalanwumsft_1-1627455502816.png

 

Best Regards,
Community Support Team_ Yalan Wu
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

Hi!

Thank you for your solution!!
Changing the format of the other 2 columns to date format made the filtering work even without creating the flag. 

But still thank you, I'll keep in mind all your solution (with the flag).

othy_bi
Resolver IV
Resolver IV

Hi @KatyaK ,

Could you please share a screenshot of dates values from the 3 related dates columns so I know undestand what is happening in your file. 

 

Did it work ? Mark it as a solution to help spreading knowledge.

A kudos would be appreciated

KatyaK_0-1627307146020.png

KatyaK_1-1627307182084.png

KatyaK_2-1627307362150.png

 

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Get Ready for Power BI Dev Camp

Microsoft named a Leader in The Forrester Wave

Microsoft received the highest score of any vendor in both the strategy and current offering categories.

Get Ready for Power BI Dev Camp

Power BI Dev Camp - September 30th, 2021

Mark your calendars and join us for our next Power BI Dev Camp!

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors