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

I need to get the cheapest value per group

Hello, I need to get the cheapest value per group, but I can't in any way, I've already researched and it never works for me.

 

 

 

Minimum = CALCULATE(MIN(UltimasEntradas[UltimoValor]),ALLEXCEPT('apresentaçao', 'apresentaçao'[apresentacao]))

 

 

 

 

I would like the "Minimum" column to contain the minimum value per group, which in this case would be "4.99". I need this value in all lines, because later I will have to do another calculation to see the difference between the minimum and the "last value"

victormarconis_0-1687293484604.png

 

2 ACCEPTED SOLUTIONS
Martin_D
Super User
Super User

Did you already try:

Minimum = CALCULATE(MIN(UltimasEntradas[UltimoValor]),ALLSELECTED())

View solution in original post

I got it this way below, you opened my mind, thank you very much.

MinimumGroup = CALCULATE( MIN(UltimasEntradas[UltimoValor]), ALLEXCEPT(UltimasEntradas, 'apresentaçao'[apresentacao])

View solution in original post

6 REPLIES 6
Martin_D
Super User
Super User

You are right, the on screen order ofthe posts is a bit confusing sometimes, but the message numbers are clear 😉

Martin_D
Super User
Super User

Did you already try:

Minimum = CALCULATE(MIN(UltimasEntradas[UltimoValor]),ALLSELECTED())

I got it this way below, you opened my mind, thank you very much.

MinimumGroup = CALCULATE( MIN(UltimasEntradas[UltimoValor]), ALLEXCEPT(UltimasEntradas, 'apresentaçao'[apresentacao])

It even works on a separate Card, then I apply the filter and it works, but I wanted this column to appear in my visual table, and by group, not in general as in this case. Can you help me, thank you very much.

Would you mind posting a screenshot of the whole report page, where you currently are, and what should behave differently?

It's already been solved, look at the other answer, thanks

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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