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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
hel64
New Member

Date filters

I have 2 fact tables one actuals with a granularity of daily and one targets with a granularity of monthly. Each is linked to a different Dim_Date table to maintain active relationships in the data model. Each date table has a slicer filter visual which respectively controls the actual and targets figures which both reside in a table visualisation. My question is 'Can the two date slicers be 'synched' so that when one of the date slicer months is changed the other date slicer month is automatically changed to the same month. eg so the May 2020 target figures appear with the May 2020 actual figures in the table?

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

Hi @hel64 

Two answers above provide useful suggestions, is your problem sloved?

If not, you could try:

assume you have two date table, one is like date1: 2020/5/1  2020/5/2

another is like date2: May 2020  June 2020

You could add column in date1 like:

[month_year]=format(date1[date],"Mmmm YYYY")

Then create a relationship as below:

Capture7.JPGCapture8.JPG

Download my pbix to see more details

https://qiuyunus-my.sharepoint.com/:u:/g/personal/admin_qiuyunus_onmicrosoft_com/EbswFaut3TlOmgTk-u6...

 

Best Regards
Maggie
Community Support Team _ Maggie Li
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

3 REPLIES 3
v-juanli-msft
Community Support
Community Support

Hi @hel64 

Two answers above provide useful suggestions, is your problem sloved?

If not, you could try:

assume you have two date table, one is like date1: 2020/5/1  2020/5/2

another is like date2: May 2020  June 2020

You could add column in date1 like:

[month_year]=format(date1[date],"Mmmm YYYY")

Then create a relationship as below:

Capture7.JPGCapture8.JPG

Download my pbix to see more details

https://qiuyunus-my.sharepoint.com/:u:/g/personal/admin_qiuyunus_onmicrosoft_com/EbswFaut3TlOmgTk-u6...

 

Best Regards
Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@hel64 , You can have month start or the month end date in month table using month. example

 

Month is in format - May-2020// Mark Data Type as date

 

Date = "01-"&[Month]

 

Month is in format - YYYY-mm

 

Date = Date(left([Month],4),right([Month],2),1)  // Mark Data Type as date

 

You can now join both tables to same date table

 

edhans
Super User
Super User

why do you have two date tables? Why not just one? The date table doesn't care that there is a FACT table with daily granularity and another FACT table with monthly granularity? Plus, you cannot mark both as Date Table, and you lose some of the benefits of a date table not marked as a date table.

 

I do not think you can sync the slicers the way you want. Sync Slicers functionality is for slicers on different pages of  your report to keep the same fields in sync, not different tables.



Did I answer your question? Mark my post as a solution!
Did my answers help arrive at a solution? Give it a kudos by clicking the Thumbs Up!

DAX is for Analysis. Power Query is for Data Modeling


Proud to be a Super User!

MCSA: BI Reporting

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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