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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
tecumseh
Resolver III
Resolver III

Two Calendar Tables To Control Each Other

Hi,

I added 2 calendar tables both 1/1/2024 - 12/31/2025
Joined on Date with Bi-Directional relationship

Added Cal1 to Slicer with standard between calendar dates slider

Added Cal2 to another Slicer on same page with Year, Quarter, Month Hierarchy

I selected Jan, 2024 from the hierarchy slicer but the dates did not update as I thought they would on the other slicer
Is it possible to make the dates update to correspond to the hierarchy slicer?

calendar.png

 

Thanks,

w

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi, @tecumseh 

 

You can try the following methods. The two date tables do not need to be related.

Measure = 
Var _SELECTEDYear=SELECTEDVALUE(Date1[Date].[Year])
Var _SELECTEDMonth=SELECTEDVALUE(Date1[Date].[MonthNo])
RETURN
IF(MIN(Date2[Date])>=DATE(_SELECTEDYear,_SELECTEDMonth,1)&&MAX(Date2[Date])<=DATE(_SELECTEDYear,_SELECTEDMonth+1,1)-1,1,0)

Place measure in the view to be filtered and set it equal to 1.

vzhangtinmsft_0-1738574480444.png

Result:

vzhangtinmsft_1-1738574542407.png

Tested, date slicer does not work when it is in between style. Switching to other styles can work. 

 

Best Regards,

Community Support Team _Charlotte

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

2 REPLIES 2
Anonymous
Not applicable

Hi, @tecumseh 

 

You can try the following methods. The two date tables do not need to be related.

Measure = 
Var _SELECTEDYear=SELECTEDVALUE(Date1[Date].[Year])
Var _SELECTEDMonth=SELECTEDVALUE(Date1[Date].[MonthNo])
RETURN
IF(MIN(Date2[Date])>=DATE(_SELECTEDYear,_SELECTEDMonth,1)&&MAX(Date2[Date])<=DATE(_SELECTEDYear,_SELECTEDMonth+1,1)-1,1,0)

Place measure in the view to be filtered and set it equal to 1.

vzhangtinmsft_0-1738574480444.png

Result:

vzhangtinmsft_1-1738574542407.png

Tested, date slicer does not work when it is in between style. Switching to other styles can work. 

 

Best Regards,

Community Support Team _Charlotte

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

vanessafvg
Community Champion
Community Champion

can you share your pbix?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.