Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreThe FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now
Hola
He creado la siguiente fórmula con SWITCH:
Hola @TheoC , ¿puedes agregarlo por mí? No tengo mucha experiencia con DAX y me gustaría saber dónde colocarlo.
Este @EsterBR ,
Puede utilizar esta medida
Puedes modificarlo ligeramente añadiendo el SWITCH que tengas como VAR, y luego añadiendo otro VAR para la condición especial. Por ejemplo:
Presupuesto Q/mes =
VAR SelectedMonth = SELECTEDVALUE ( 'Calendario'[Nombre del mes] )
VAR _Condition = / / Añade la condición aquí
DEVOLUCIÓN
SI (
_Condición
// Cálculo si _Condition es VERDADERO ,
INTERRUPTOR (
SelectedMonth ,
"Agosto", [Presupuesto MAX] ,
"Septiembre", [Presupuesto MAX] ,
"Octubre", [Presupuesto MAX] ,
"Noviembre", [Presupuesto MAX] ,
"Diciembre", [Presupuesto MAX] ,
[SUMA PRESUPUESTARIA]
)
)
Espero que esto tenga sentido / ayude.
Theo 🙂
Gracias @TheoC , ¿Dónde agrego el Y? Necesito que el nombre del mes sea " Agosto" Y "Septiembre"
Puede agregar la condición AND como el VAR _Condition
Hazme saber si quieres que agregue esto por ti.
Theo
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.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.