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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

'Aligned Period' feature development.

Hello BI community, I am working on a dashboard and have been asked to make the Date and Country dimensions cross filter each-other. The feature  has to be built in a way where if two countries are multi selected, the visual will only display up until the minimum date containing values. (In my screenshot where Belgium & Brazil are selected, I want the last month shown to be Feb 2023, instead of March 2023 because there is no value for Brazil). I am currently trying to figure out how to implement the second feature and have been finding it a bit of a challenge, any advice on how it can be achieved?  Thank you in advance

Sample Data ModelSample Data ModelVisuals UnfilteredVisuals UnfilteredVisuals Brazil & Belgium selectedVisuals Brazil & Belgium selected

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try a measure like

Measure =

var _max = Minx(summarize(allselected(Table), Table[Country], "_max", max(Date[Date]) ), [Date])

return

calculate([Measure], filter(Date, Date[Date] <= _max) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Hello Amit, Thank you for the reply. For some reason it doesnt want to accept that last 'Date' expression in the Minx function.  Is there something i am missing? Screenshot 2023-10-27 141346.pngScreenshot 2023-10-27 140954.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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