Forum Discussion

renatorezk's avatar
renatorezk
Regular Visitor
4 years ago
Solved

Get Min from a summarize table

Hello everyone

I need help to retrieve the min value from a summarize table.

Below is data sample from my original Table (Fact_Qntd_Cotas)



I need to group by Date (DataCorrigida) to get the total sum of field [Quantidade_total] by date. After that I need to get the minimum of this sum.

I'm using summarize to group by date

SUMMARIZE(
Fact_Qntd_Cotas,
Fact_Qntd_Cotas[DataCorrigida], 
"posicaoDiaria", SUM(Fact_Qntd_Cotas[Quantidade_total]))


I need to get the minimum value of [posicaoDiaria]. How can I achieve it?

Thanks in advance.

1 Reply