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

Reescritura de VAR MEASURE

Hola a todos

Tengo el siguiente dax que estoy tratando de ajustar a otra tabla

DE:

SOS =

Dónde _client_name = VALOR SELECCIONADO('PocketWatch Shift Invoice Repor'[Nombre del cliente])

Dónde _product_code = VALOR SELECCIONADO('PocketWatch Shift Invoice Repor'[Número de artículo de soporte NDIS])

Dónde _Sos = CALCULAR(SUMX('GENIUS Schedule of Support Expo','GENIUS Schedule of Support Expo'[Unidades SOS]),

'GENIUS Schedule of Support Expo'[Nombre del cliente] = _client_name,

'GENIUS Schedule of Support Expo'[Código de producto] = _product_code

)

devolución _Sos

Babycakes_0-1670190475098.png

Para

Babycakes_1-1670190475100.png

¿Puede ayudarme sobre cómo modificar?

Gracias

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@Babycakes ,

Puede probar el siguiente dax:

SOS =
var _client_name = SELECTCOLUMNS('PocketWatch Shift Invoice Repor',"client_name",[Client name])
var _product_code = SELECTCOLUMNS('PocketWatch Shift Invoice Repor',"product_code",[NDIS Support Item number])
var _sos=
CALCULATE(SUM('GENIUS Schedule of Support Expo'[SOS Units]),
FILTER(ALL('GENIUS Schedule of Support Expo'),
'GENIUS Schedule of Support Expo'[Client Name] in _client_name &&
'GENIUS Schedule of Support Expo'[Product code] in _product_code))
return
_sos

Saludos

Liu Yang

Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

APologies, quise decir como con los nuevos nombres de columna en la 2ª imagen 🙂

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.