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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

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
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.