Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hola a todos,
Necesito ayuda para convertir las siguientes instrucciones de caso a dax.
Caso
CUANDO ([SCODE]) = 47123
THEN((([Total Real]+1350)+Caso cuando isnull([Total Budget_Food]) luego (-1*[Presupuesto Total]) else [Total Budget_Food] END)/[Total ComparedOcc_FB]*[Max Negation])/(((Caso cuando isnull([Total Budget_Food]) luego (-1*[Total Presupuesto]) else [Total Budget_Food] END)/[Total Compared_Occ_FB])
ELSE(([Total real]+Caso cuando isnull([Total Budget_Food]) luego (-1*[Presupuesto total]) else [Total Budget_Food] END)/[Total Compared_Occ_FB]*[Max Negation])/((Caso cuando isnull([Total Budget_Food]) luego (-1*[Presupuesto total]) else [Total Budget_Food] END)/[Total Compared_Occ_FB])
Fin
Su ayuda será muy apreciada.
¿Las sugerencias anteriores ayudaron con su escenario? si ese es el caso, puede considerar Kudo o Aceptar las sugerencias útiles para ayudar a otros que enfrentaron requisitos similares.
Si esto tampoco ayuda, comparta información más detallada para ayudarnos a aclarar su escenario para probar.
Cómo obtener respuestas a su pregunta rápidamente
Saludos
Xiaoxin Sheng
@woleada20 , Puede usar Switch con True
ejemplo
Switch(True() ,
[CÓDIGO SCODE]) = 47123 , [Total real]+1350 ,
isblank([Total Budget_Food]) , -1*[Presupuesto total],
divide([Total Budget_Food] END), [Total ComparedOcc_FB]*[Max Negation])
)
De la misma manera, puede agregar otro modificador verdadero
Declaración de #PowerBI Switch-Case: https://www.youtube.com/watch?v=gelJWktlR80&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=56
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.