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

Problema de medida acumulativa con el modo de consulta directa

Hola Experto

¿Cómo se soluciona el siguiente problema al escribir medidas acumulativas en modo de consulta directa....

Ver imagen

Capture.PNG

He aquí las medidas en cuestión - Medidas

1.
Acumulado hoy =
CALCULAR (
[Ventas totales],
FILTRO (
ALLSELECTED ( FACTSalesOrderTable ),
FACTSalesOrderTable[created_at_sales_flat_order] <=max ( FACTSalesOrderTable[created_at_sales_flat_order] )
)
)
2.
Semanas anteriores acumuladas =
CALCULAR(
[Semanas anteriores],
FILTRO(
ALLSELECTED('FACTSalesOrderTable'[created_hour]),
ISONORAFTER('FACTSalesOrderTable'[created_hour], MAX('FACTSalesOrderTable'[created_hour]), DESC)
)
)
3.
Acumulado año anterior =
CALCULAR(
[Año anterior],
FILTRO(
ALLSELECTED('FACTSalesOrderTable'[created_hour]),
ISONORAFTER('FACTSalesOrderTable'[created_hour], MAX('FACTSalesOrderTable'[created_hour]), DESC)
)
)
1 ACCEPTED SOLUTION
Syndicate_Admin
Administrator
Administrator

@Route217 , algunas de estas fechas tienen marca de tiempo, si eso no es necesario en la fecha de creación visual sin marca de tiempo y utilizar los de meausre. O combine fechas con la tabla de fechas e intente usar la tabla de fechas en lugar de estas fechas en la lógica acumulativa

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@Route217 , algunas de estas fechas tienen marca de tiempo, si eso no es necesario en la fecha de creación visual sin marca de tiempo y utilizar los de meausre. O combine fechas con la tabla de fechas e intente usar la tabla de fechas en lugar de estas fechas en la lógica acumulativa

Hola Amit Comprobando..... ¿Y cómo funcionarían las fechas de la tabla de fechas?

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.