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 a todos,
Adjunté el archivo de muestra de PBI y adjunté una imagen para mi idea que llegué a dar forma ya escenificada.
Sin embargo, me gustaría usar los datos de 'Col-Type' [CurrentMonth] en lugar de escribir "Mar" como en el dax de muestra proporcionado porque hay un par de docenas de medidas similares que se utilizarán para diferentes gráficos, realmente no puedo actualizar todos y cada uno de ellos cada mes, en su lugar Es mi deseo simplemente cambiar los datos en 'Col-Type' [CurrentMonth].
O Las alternativas para mi idea son muy apreciadas.
Por favor, ayuda, gracias <33
https://drive.google.com/file/d/128YEVdMEsiBYfMy-R6J4SowibiA-sXoC/view?usp=sharing
OBActual_OB =
SUMX('Col_Type',
VAR CurrentType = 'Col_Type'[Col_Type]
Return
if
(CurrentType="OB Actual",
IF
(ISFILTERED('ORDER_TABLE'[MONTH])=False(),
CALCULATE(Sum('obcb'[OB Actual]), 'obcb'[Month] = "mar"),
FIRSTNONBLANK('obcb'[OB Actual],1)
)
)
)
Solved! Go to Solution.
Sí, tengo la SOLUCIÓN
No funcionó porque puse la columna CurrentMonth en la misma tabla del mes utilizada para verificar, ahora creé otra tabla sin hacer ninguna relación y la usé en la consulta condicional.
OBActual_OB =
SUMX('Col_Type',
if
('Col_Type'[Col_Type]="OB Actual",
IF
(ISFILTERED('ORDER_TABLE'[MONTH])=True(),FIRSTNONBLANK('obcb'[OB Actual],1),
CALCULATE(Sum('obcb'[OB Actual]),'obcb'[Month]= SELECTEDVALUE(lastdatamonth[LastMonth]))
)
))
Sí, tengo la SOLUCIÓN
No funcionó porque puse la columna CurrentMonth en la misma tabla del mes utilizada para verificar, ahora creé otra tabla sin hacer ninguna relación y la usé en la consulta condicional.
OBActual_OB =
SUMX('Col_Type',
if
('Col_Type'[Col_Type]="OB Actual",
IF
(ISFILTERED('ORDER_TABLE'[MONTH])=True(),FIRSTNONBLANK('obcb'[OB Actual],1),
CALCULATE(Sum('obcb'[OB Actual]),'obcb'[Month]= SELECTEDVALUE(lastdatamonth[LastMonth]))
)
))
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.