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

DAX - Ejecución del total en el índice de medida por mes (columna)

Hola

Tengo una tabla dinámica "tabla" (creada por la función RESUMIR basada en otra tabla) con campos:

  • "MonthIndex" - columna
  • "MonthName" - columna
  • "Forecast%" - medida que depende de algunas instrucciones de segmentación de datos y conmutador

table = 
SUMMARIZE (
    'Calendar New',
    'Calendar New'[Month],
    'Calendar New'[MonthIndex]
    )

Estoy tratando de configurar un total en ejecución "x" de "Forecast%" por "MonthIndex", pero el total de ejecución no funciona - ver captura de pantalla.

x = CALCULATE (      
   'table'[Forecast%],      
   FILTER ( ALL (      
      'table'[MonthIndex] ),      
      'table'[MonthIndex] <= MAX ( 'table'[MonthIndex] )  
   )    
)  

2021-10-25_18h05_10.png

Buscando cualquier idea

saludos

1 ACCEPTED SOLUTION

@smpa01esto me ha funcionado

 x = 
    SUMX(
        FILTER(
            ALL('table'),
            'table'[MonthIndex] <= MAX ( 'table'[MonthIndex] )
        ),
        'table'[Forecast%]
    )

View solution in original post

5 REPLIES 5
Syndicate_Admin
Administrator
Administrator

@diskman alguna posibilidad de que pueda proporcionar una muestra de pbix?

@smpa01,el pbix tiene datos comerciales relacionados 😞

@diskman ¿Cómo escribiste

[Pronóstico%]

@smpa01 es como se muestra a continuación ... AFAIK Debo usar la medida porque hay una segmentación visual utilizada"Preferencia %"

Pronóstico % = (SI(MIN('tabla'[MonthIndex])=1,'Preferencia %'[Preferencia % Valor], (33-'Preferencia %'[Preferencia % Valor])/11))/100

@smpa01esto me ha funcionado

 x = 
    SUMX(
        FILTER(
            ALL('table'),
            'table'[MonthIndex] <= MAX ( 'table'[MonthIndex] )
        ),
        'table'[Forecast%]
    )

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.