This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hola equipo,
Tengo la siguiente imagen:
La medida dax resaltada es la que da valores incorrectos.
A continuación se muestra la medida del dax para el mismo:
Forecast Budget Unit (TimeSeries) =
SUMX (
VALUES ( Calendar_[Month-Year] ),
SUMX (
VALUES ( Points[DBName-Point_Id] ),
VAR _target =
CALCULATE (
AVERAGE ( TargetTimeSeriesMonth[Dail Units] ),
TargetTimeSeriesMonth[TargetType] = 1
)
VAR _monthtarget =
CALCULATE (
SUM ( TargetTimeSeriesMonth[Usage] ),
TargetTimeSeriesMonth[TargetType] = 1
)
VAR _noofdays =
COUNTROWS ( Calendar_ )
VAR _nofinvdays =
COUNTROWS ( DataInvoice )
VAR _missing = _noofdays - _nofinvdays
RETURN
IF ( _missing = _noofdays, _monthtarget, _target * _missing )
)
)
Como puede ver en el objeto visual anterior, la columna nofinvdays muestra 60 días
Pero cuando traemos dbName-Points_Id estos 60 días se dividen en 2 filas de 30 días y 30 días para el mes de abril.
¿Puede ayudarme a modificar el dax anterior?Forecast Budget Unit (TimeSeries)' para que tome el contexto de DBName-point_id de la tabla de puntos y también se agregue para dar el total correcto. Además, actualmente muestra valores negativos.
Creo que el contexto del filtro está causando problemas. ¿O es la variable? ¿Necesitamos forzar la variable dentro de sumx?
La salida esperada se verá como sin valores negativos:
FYR, he adjuntado el archivo adjunto a la presente Rendimiento de la cartera - v2.15 (1).pbix
¡Gracias de antemano!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.