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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Syndicate_Admin
Administrator
Administrator

Totales del DAX para el año anterior hasta la fecha

Hola a todos.

Me estoy encontrando con un problema con una medida que estoy tratando de escribir. El objetivo es mostrar el total de unidades del mes hasta la fecha de este mes, que puedo calcular con bastante facilidad con la función TotalMTD. Sin embargo, cuando intento usar el SAMPERIODLASTYEAR o DATEADD, solo puedo obtener una suma de TODO el mes del año anterior, en lugar del total del mes hasta el mismo día de este año.

¿Alguien ha sido capaz de crear con éxito esta medida? He buscado y buscado, pero no puedo encontrar a nadie que haya tenido éxito. En este momento estoy probando el siguiente DAX sin éxito:

Unidades PYMTD =
calcular(
suma(
'HECHO DE VENTAS'[UNIDADES]),
FECHASMTD(FechaAñadir('Tabla de fechas del año fiscal'[Fecha], -12, MES)))
También he intentado:
Unidades PYMTD =
CALCULAR(
SUMA(
«HECHO DE VENTA» [UNIDADES]),
SAMEPERIODLASTYEAR('Tabla de fechas del año fiscal'[Fecha]))
Ambas medidas calculan el total del mes, no el total hasta la fecha de hoy. ¿Alguien puede ayudar???
1 REPLY 1
Syndicate_Admin
Administrator
Administrator

@Dave1mo1 Puede que te resulte útil - https://community.powerbi.com/t5/Community-Blog/To-bleep-With-Time-Intelligence/ba-p/1260000

Además, vea si mi Inteligencia del Tiempo de la Manera Difícil proporciona una forma diferente de lograr lo que está buscando.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...

Además:

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.