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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
pan
Frequent Visitor

MIN/MAX with dates and measures

Hi! I'm working on data for multiple years and I want to return the month when the target is reached. 
Screenshot (6).png
I am for the most part working with measures so referencing them in the MINX formula is tricky. What I'm thinking is to calculate a table or summarize the result of the ratios (computed with the MINS measure) by year and get the minimum ratio per year, and return the corresponding date but I don't know how to do that 😞 Here is the file for anyone who wants to help. https://drive.google.com/file/d/1PnaHIDRKaQ_musoJU8iEwYhEbBLh-roi/view?usp=sharing

3 REPLIES 3
v-shex-msft
Community Support
Community Support

HI @pan,

 

Based on test, I think the issue related to your target measure, it not support auto drill to next hierarchy level to get the specific. If you not add month as row label, it only calculate on year level.

 

Regards,

Xiaoxin Sheng

 

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Hi! Thank you for your response! So would the best way to get around this is add a month column that's not from the Date Table and insert it as a filter?

Hi @pan,

 

Yes, I also consider about this scenario.
Not add month : formula not works on current records;

Add column: measure will expand lots of invalid data.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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