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 September 15. Request your voucher.

Reply
GeorgWildmoser
Frequent Visitor

Measure for Mindate to a third column works correctly in the month, but not at year level.

Hello,

please help me with DAX. I have a measure that determines the minimum date for column 3. Usually the beginning of a month is expected.

The measure works as long as I have the month as a column in the table.

The measure stops working when I go to the year view. Then I get the beginning of the year as the result.

Thank you for your help.

 

Result:

GeorgWildmoser_4-1723651130581.png

 

Expected result (please remove the month column):

GeorgWildmoser_3-1723651020771.png

My measure:

GeorgWildmoser_5-1723651945284.png

 

Thank you for your help. 

 

 

 

 

 

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Thanks for the reply from lbendlin , please allow me to provide another insight: 
Hi  @GeorgWildmoser ,

I created some data:

vyangliumsft_0-1723707111438.png

You can try using filter(table, filter conditions), which creates a pro table in the current counting context containing the rows of the filter conditions to be calculated.

Measure =
MINX(
    FILTER('Table',
    'Table'[Column3]<>BLANK()),[date])

vyangliumsft_1-1723707111441.png

If the results above don't meet your expectations, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you

 

Best Regards,

Liu Yang

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

Thanks for the reply from lbendlin , please allow me to provide another insight: 
Hi  @GeorgWildmoser ,

I created some data:

vyangliumsft_0-1723707111438.png

You can try using filter(table, filter conditions), which creates a pro table in the current counting context containing the rows of the filter conditions to be calculated.

Measure =
MINX(
    FILTER('Table',
    'Table'[Column3]<>BLANK()),[date])

vyangliumsft_1-1723707111441.png

If the results above don't meet your expectations, Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. We can better understand the problem and help you

 

Best Regards,

Liu Yang

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

lbendlin
Super User
Super User

That is working as designed. Since you don't have a filter on the month the KEEPFILTERS  is ineffective.

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.