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
pfprado
Frequent Visitor

How to get minimum value from range date in DAX

I need to get a calculated measure of the minimum date of a range of values, ie I have a fact table with a date and two measures. When I filter by range date, I need to get the second measure of the minimum date of that range, in the example, the measure 1 of 1st january, something like this:

 

https://db.tt/6jKBPRCr

 

The picture on the left is as I have the data in the fact table, data from the right as they should be when I filter from date (from 1st to 6 january). The measure 1 is added for a group, and measure 2 is the minimum value of the range of dates and must be repeated for each resulting record (highlighted).

 

I would greatly appreciate your help with this.

Thank you for your time

2 ACCEPTED SOLUTIONS

AND AT LAST CREATE A FINAL MEASURE

 

FINALMeasure = CALCULATE([mymeasure],ALL('fact'[Group]))

 

This will defintely solve your problem.sol.PNG

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

View solution in original post

Thanks a lot! you really help me

View solution in original post

3 REPLIES 3
BhaveshPatel
Community Champion
Community Champion

FIRST CREATE A MEASURE

 

Sumofmeasure2 = SUM('fact'[Measure 2])

 

AND ON TOP OF THAT CREATE ANOTHER MEASURE

 

mymeasure = CALCULATE([Sumofmeasure2],FILTER('fact','fact'[Date]=MIN('fact'[Date])))

 

IT WOULD SOLVE YOUR PROBLEM IF I TOOK YOUR REQUIREMENTS CORRECTLY.

 

LET ME KNOW HOW IT GOES.

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

AND AT LAST CREATE A FINAL MEASURE

 

FINALMeasure = CALCULATE([mymeasure],ALL('fact'[Group]))

 

This will defintely solve your problem.sol.PNG

Thanks & Regards,
Bhavesh

Love the Self Service BI.
Please use the 'Mark as answer' link to mark a post that answers your question. If you find a reply helpful, please remember to give Kudos.

Thanks a lot! you really help me

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.