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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Syndicate_Admin
Administrator
Administrator

Total visual que no coincide con la suma de la fila individual

hola

Utilizo con esta medida DAX para obtener un valor en la matriz:

STILLS_JUICE =
Dónde PUNTO= CALCULAR(MÁXIMO(SKU_Racing[ punto]),SKU_Racing[tag_name]="stiils" && SKU_Racing[product_group]="JUGO")
Dónde CONTAR1 =CALCULAR(MÁXIMO(SKU_Racing[contar]),SKU_Racing[tag_name]="stiils" && SKU_Racing[product_group]="JUGO")
Dónde x=
SI(CALCULAR(DISTINCTCOUNT(Sale_Out[product_master_id]),Product_Tags[FOTOGRAMAS]="JUGO")>=CONTAR1, PUNTO,ESPACIO EN BLANCO())
Dónde y = RESUMIR(Sale_Out,Sale_Out[creator_id],Sale_Out[outlet_id], "xx",x)
devolver IF(
HASONEVALUE(Sale_Out[creator_id]) && HASONEVALUE(Sale_Out[outlet_id]),x,
SUMX(y,[xx]))
Obtengo el número correcto de cada línea pero no en total.
Hice la misma medida a otro Product_Tags[STILLS] = "JUICE" y obtengo el número correcto de cada línea pero no en total.
para los dos obtengo 75 en total (porque el número de líneas que obtengo es 25 y suma todas las líneas aunque esté en blanco)
y todavía tengo un error en la tabla total:
sapirmarko_0-1651577812003.png

gracias por su ayuda!

4 REPLIES 4
Syndicate_Admin
Administrator
Administrator

no funciona.. tal vez porque tengo 2 categorías?

Syndicate_Admin
Administrator
Administrator

Consulte este video para saber cómo obtener su total esperado con una referencia a su medida existente.

(2) Power BI - Tales from the front #01 - Getting the Right Total - YouTube

Palmadita

Uso SUMX pero aún así no obtuve el resultado correcto

@sapirmarko,

Parece un problema común de cálculo de agregación múltiple, puede echar un vistazo al siguiente blog si ayuda:

Medir totales, la última palabra

Saludos

Xiaoxin Sheng

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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