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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
Anonymous
Not applicable

Dax date issue

Hi,

 

I have my date table [Date] linked with a 1 to many relationship to with Resource Annual [Date]. 

 

The simple dax below works to calculate the first date in the series as the Production Start Year.

 

Production Start Year = MIN( 'Resource Annuals'[Date] )

 

Could somebody please tell me why when I use my date table year as a slicer it does not filter the matrix but instead returns the same year for each row of my matrix?

 

Thanks  

3 REPLIES 3
mahoneypat
Microsoft Employee
Microsoft Employee

Your first post indicated that filtering wasn't happening and your last one suggest too much filtering is happening.  In any case, ALLSELECTED will not remove filters coming from slicers outside your matrix.  You need to use ALL instead.  For example,

 

Production Year = CALCULATE(MIN('Resource Annuals'[Date]), ALL('Resource Annuals'))

 

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


mahoneypat
Microsoft Employee
Microsoft Employee

Make sure both columns in the relationship are Date type, and not DateTime.  It is not enough to change the format; it needs to be changed in the query editor.

Regards,

Pat





Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Anonymous
Not applicable

Thanks for the response.

 

Both of my columns are formatted as date only.

 

The issue seems to be that once I slice by year using my date table the Resource Annual table is filtered to that year. This then become the new min date that is returned.

 

I presume I need to make use of ALLSELECTED but can't figure out the pattern to slice by year and retain the original Production Start Year.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.