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
josevaras
Employee
Employee

Totales del mes anterior

Hola, como siempre TIA

La siguiente imagen muestra los totales del mes actual (Total ST) y los totales del mes anterior (TEST LM). Mis preguntas son, ¿por qué no puedo obtener los totales generales para los datos de los últimos meses? La razón por la que quiero totales es que quiero mirar la tabla desde una perspectiva de Totales y no por elementos de producto (fila).

Para tu información, la fila son productos, pero no incluyeron a propósito

TotalsLastMonth.png


Dax para el mes actual

Total ST - SUM( DevicesDataTBL[Vender a través del total] )


Dax para el mes pasado

PRUEBA LM ?

CALCULATE( [Total ST] ,
PREVIOUSMONTH( DatesTBL[Fecha] )
)
2 REPLIES 2
V-lianl-msft
Community Support
Community Support

Hola @josevaras ,

Intente crear una nueva medida como esta

•IF(HASONEVALUE(DevicesDataTBL[Row_in_matrix]),BLANK(),[TEST LM])

Saludos
Liang
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

amitchandak
Super User
Super User

@josevaras, intenta como

sumx(values(Table[Columns]), // column is rows of matrix
CALCULATE( [Total ST] ,
PREVIOUSMONTH( DatesTBL[Fecha] )
))

O

algo así
sumx(summarize(Table, Table[year], Table[Month],"_1",CALCULATE( [Total ST] ,
PREVIOUSMONTH( DatesTBL[Fecha] )
)),[_1])

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.