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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
FL
Frequent Visitor

Max of Sum con múltiples filtros

Queridos todos,

Actualmente tengo un problema calculando el máximo de valores de suma por día. Me gustaría poder crear la línea roja en el gráfico de abajo teniendo en cuenta los filtros de la izquierda.

La tabla de origen tiene el siguiente aspecto : DateTime es cada minuto:

2021-01-11_10-39-15.jpg

FL_0-1610356886569.png

He probado muchas fórmulas con SUMX, SUMMARIZE y FILTER, pero no puedo obtener el resultado correcto.

Ej: SumMax á SUMX(SUMMARIZE(Sheet1, Sheet1[Date],Sheet1[Type],Sheet1[Activité], "sum of Max", MAX(Sheet1[Nb])),[suma de Max])

Pero obtengo el siguiente resultado - que no es lo que estoy buscando :

2021-01-11_10-29-53.jpg

Gracias de antemano por su apoyo

1 ACCEPTED SOLUTION

@FL , No estoy seguro en , pero esto primero debe sumar y luego tomar max

medida :
calculate(maxX(values(Table[Datetime]),calculate(sum(Table[Nb]))), filter(allselected(Table), Table[date] á max(Table[date])))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@FL , Pruebe una medida como

medida :
calculate(max(Table[Nb]), allexcept(Table, Table[date]))

Como

medida :
calculate(maxX(values(Table[Datetime]),[Nb]), allexcept(Table, Table[date]))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Gracias por la respuesta.

Desafortunadamente no funciona.

La primera medida da el siguiente resultado:

FL_0-1610360034505.png

Y el segundo tampoco.

@FL , Asegúrese de que la fecha tiene marca de tiempo.

Inténtalo como

medida :
calculate(max(Table[Nb]), filter(allselected(Table), Table[date] á max(Table[date]))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Funciona cuando solo hay un tipo y una actividad seleccionada:

2021-01-11_11-45-16.jpg

Cuando tengo más de uno va mal (da el máximo de un tipo / activitie) - no suma las actividades a continuación :

2021-01-11_11-47-31.jpg

@FL , No estoy seguro en , pero esto primero debe sumar y luego tomar max

medida :
calculate(maxX(values(Table[Datetime]),calculate(sum(Table[Nb]))), filter(allselected(Table), Table[date] á max(Table[date])))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Gracias:

FL_0-1610365653701.png

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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

Top Solution Authors