The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event! Join us in Stockholm, Sweden from September 24-27, 2024.
2-for-1 sale on June 20 only!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
Hello
Any reason why my question is shown in Spanish? unfortunately, I am not familiar with Spanish.
I need to display the sum total of a cumulative measure at the top of the graph. I am using Line and Stacked column chart and the running total is calculated by
As shown above, the line values are showing in the wrong place with the wrong values, how can I fix this?
Thank you
As shown above, the line values are showing in the wrong place with the wrong values, how can I fix this?
I do not think a sample data is required, however, the below table shows a sample data
Thank you
Asset type | Cash Flow | Financial Year |
1 | 100 | 2020 |
1 | 200 | 2021 |
1 | 300 | 2022 |
1 | 400 | 2023 |
1 | 500 | 2024 |
1 | 600 | 2025 |
1 | 700 | 2026 |
2 | 800 | 2020 |
2 | 900 | 2021 |
2 | 1000 | 2022 |
2 | 1100 | 2023 |
2 | 1200 | 2024 |
2 | 1300 | 2025 |
2 | 1400 | 2026 |
3 | 1500 | 2020 |
3 | 1600 | 2021 |
3 | 1700 | 2022 |
3 | 1800 | 2023 |
3 | 1900 | 2024 |
3 | 2000 | 2025 |
3 | 2100 | 2026 |
4 | 2200 | 2020 |
4 | 2300 | 2021 |
4 | 2400 | 2022 |
4 | 2500 | 2023 |
4 | 2600 | 2024 |
4 | 2700 | 2025 |
4 | 2800 | 2026 |
5 | 2900 | 2020 |
5 | 3000 | 2021 |
5 | 3100 | 2022 |
5 | 3200 | 2023 |
5 | 3300 | 2024 |
5 | 3400 | 2025 |
5 | 3500 | 2026 |
Solved! Go to Solution.
Hola @Sichanm
por favor, hágamelo saber si desea obtener por debajo de uno:
Cumalative Cash Flows = CALCULATE (sum ('sample datatype' [Cash Flow]),
filter(
ALLSELECTED ('sample datatype'),
'sample datatype' [Financial Year] <= Max ('sample datatype' [Financial Year])
),VALUES('sample datatype'[Asset type])
)
@Sichanm , no muy claro referirse si esto puede ayudar a
https://www.youtube.com/watch?v=TV6YRmLYd9s
Hola @Sichanm
por favor, hágamelo saber si desea obtener por debajo de uno:
Cumalative Cash Flows = CALCULATE (sum ('sample datatype' [Cash Flow]),
filter(
ALLSELECTED ('sample datatype'),
'sample datatype' [Financial Year] <= Max ('sample datatype' [Financial Year])
),VALUES('sample datatype'[Asset type])
)
Thanks alot, your answer was almost perfect:), could you please help me more.
So for the column, I use:
and for the line, I use:
If I use Col_Cumalative Cash Flow for both of the line and column, it goes down at the end as shown below.
Hola @Sichanm
Puede poner estas 2 medidas en la tabla para ver la diferencia:
Para la medida de línea, es un acumulativo normal basado en el año, la columna de año es el único grupo ordenado. que el filtro funciona como allexcept(table,[year]), que iignore el afecto de otras columnas
Pero para la medida de columna, el grupo ordenado tiene tanto Year como Asset type.filter funciona como allexcept(table,[Year],[Asset type]), lo que significa que los valores también se verían afectados por el tipo Asset.
cuando los coloque en el gráfico de columnas apiladas y coloque el tipo de activo como leyenda. puede hacer clic en el tipo de activo para ver la influencia.
Para la última pregunta, si el azul oscuro es uno del tipo de activo, asegúrese de que hay valor en el tipo de activo correspondiente en 2038. si desea arreglarlo, por favor hágamelo saber sus resultados esperados.
Hi @v-diye-msft
Perfect, thank you so much for the clear explanation, graphs, and formulas. The way that you explained the formulas with graphs/tables and the concept of allexcepct was amazing. You have gone extra miles to help me understand how these formulas work. I really appreciate that and am so grateful. I am sure your answers will help others a lot too.
Have a wonderful day/weekend.
Hi @Anonymous
Thanks so much for your kind words! It's my pleasure to be of assistance. 🙂
Thanks, it produces the same result as we identified earlier and it works fine with the line graph.
Hola @Sichanm
Si se ha solucionado el problema actual, por favor marque la respuesta útil.
si no, por favor amablemente elaborar más. Me encantaría ser de ayuda.
Hola @Sichanm
Por lo que puedo ver en la imagen, el gráfico de líneas es el mismo que el valor de la categoría azul.
¿Podría cargar un archivo de datos de ejemplo?
_______________
Si ayudé, por favor acepte la solución y dar felicitaciones! 😀
Hi , moved the question here:https://community.powerbi.com/t5/Desktop/Sum-cumulative-measure-at-the-top-of-the-graph/m-p/1323957#...
Now, Not sure how to delete the question in the Spanish forum!
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the June 2024 Power BI update to learn about new features.