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

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
Responsive Resident
Responsive Resident

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
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

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

UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Top Solution Authors
Top Kudoed Authors