cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Syndicate_Admin
Administrator
Administrator

Sumx para valor máximo por subcategoría

Hola a todos

Soy nuevo en Power BI y estoy luchando para obtener un sumx para el valor máximo por subcategoría. Realmente aprecio si alguien puede ayudarme!

Tengo una tabla que contiene dimensiones: categoría, subcategoría y ronda FC como se muestra a continuación.

Captain_Jack909_0-1678134290304.png

Lo que me gustaría lograr es obtener el valor por subcategoría de la ronda máxima de FC a nivel de categoría, en este caso la ronda máxima de FC es 202302.
Probé el dax:

SUMX(RESUMIR( fcinput,fcinput[categoría],"MaxRound_FC_value",
CALCULAR(SUMA(fcinput[suma]),FILTRO(fcinput,fcinput[Ronda FC]=..MAX(fcinput[Ronda FC])))),[MaxRound_FC_value])

Pero obtuve un resultado incorrecto por debajo del cual el registro amarillo no debería estar allí, ya que pertenece a la ronda 202301 FC.
sin embargo, la agregación total es correcta.

Captain_Jack909_1-1678134676897.png
Sota
¡Gracias de antemano!

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

Hola

olgad_0-1678144136960.png

Thanks a lot for the help, Syndicate.

In my data table, actually there are different categories, I tried the formular its correct on each row but the total is not sumed up , it seems it only sumx by the max FC round from the whole table.
sorry for being not clear at begining, do you have an idea how to fix it ?
Jack

Helpful resources

Announcements
PBI Sept Update Carousel

Power BI September 2023 Update

Take a look at the September 2023 Power BI update to learn more.

Learn Live

Learn Live: Event Series

Join Microsoft Reactor and learn from developers.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Top Solution Authors