Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!
Estoy usando la siguiente función para calcular el total de 12 meses consecutivos de artículos.
Cuando todos los períodos se enumeran cada cosa funciona muy bien. Sin embargo, si filtro y falta un punto un MISTERIOSO "2" aparece en los datos.
CompRunning_alt de la casa de los 200o (en in
CompsCount de VAR (VAR CompCount)
CALCULAR (
DISTINCTCOUNT( 'Extract (Header)'[issueNumber]),
DATESINPERIOD (
'Extraer (Encabezado)'[Mes],
MAX ('Extraer (Encabezado)'[Mes] ),
-12,
Mes
)
)
devolución
CompCount
Todos los meses
Con missi
Solved! Go to Solution.
I was able to resolve the issue by adding a seperate date table and not use the date in the main table. I do not know why this fixed the problem or why PBI was putting a MYSTERIOUS 2 when it should have been Null or Zero.
I was able to resolve the issue by adding a seperate date table and not use the date in the main table. I do not know why this fixed the problem or why PBI was putting a MYSTERIOUS 2 when it should have been Null or Zero.
Hola
Asumo que Items es una medida que se calcula como "DISTINCTCOUNT" ('Extraer (Encabezado)'[issueNumber]). Si mi comprensión es correcta, ¿cómo puede agregar entradas de recuento distintos. Por su propia naturaleza, distinctcount no puede ser aditivo.
@ptk10636 muy difícil de decir sin mirar el archivo pbix, se puede compartir, eliminar la información sensible antes de compartir.
También como práctica recomendada, realice todo el cálculo basado en el tiempo mediante la dimensión de fecha, significa que debe agregar una dimensión de fecha en el modelo para que funcione.
aquí hay una entrada de blog que habla sobre cómo agregar una dimensión de fecha a su modelo.
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.