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

Return the year where with the MIN value in unemployment rate 12

 
 

Dear friends,

 

i have a column with the unemployment rate through 3 years ans i want to return  the year (other column in same table) where the unemployment rate is the MIN.

Can you help in simplest DAX formula to achieve it?

FJME_0-1667942981980.png

 

 

1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @FJME 

 

Please try the following measure:

 

 

Year with Min Value=

CALCULATE(
   MIN(Table[Anos]),
   Table[%Desemprego] = MIN(Table[%Desemprego])
)

 

 

Or the following to cover situations when multiple years have the min value

 

 

Year with Min Value=

CALCULATE(
   SELECTEDVALUE(Table[Anos],"multiple years"),
   Table[%Desemprego] = MIN(Table[%Desemprego])
)

 

 

Best regards

Michael

-----------------------------------------------------

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

@ me in replies or I'll lose your thread.

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

3 REPLIES 3
Mikelytics
Resident Rockstar
Resident Rockstar

Aweseome! Thank you for your feedback!

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @FJME 

 

Please try the following measure:

 

 

Year with Min Value=

CALCULATE(
   MIN(Table[Anos]),
   Table[%Desemprego] = MIN(Table[%Desemprego])
)

 

 

Or the following to cover situations when multiple years have the min value

 

 

Year with Min Value=

CALCULATE(
   SELECTEDVALUE(Table[Anos],"multiple years"),
   Table[%Desemprego] = MIN(Table[%Desemprego])
)

 

 

Best regards

Michael

-----------------------------------------------------

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

@ me in replies or I'll lose your thread.

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

Thanks a lot!

Both performs as intended.

Regards

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.

Top Solution Authors