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
Hola: les comento que tengo una tabla donde obtengo una columna IMPORTE (medida), otra columna FACTURACION SIMULADA ANTERIOR (medida) y otra columna IMPACTO MIX (medida) que es la diferencia entre las 2 anteriores.
El problema es que no se como mostrar los totales sumando los valores la columna.
Solved! Go to Solution.
Hi, @sanvass72
I've simulated some data that I hope fits your situation. The function IF(HASONEVALUE()), can control the output of Total.
Difference =
IF (
HASONEVALUE ( 'Table'[Date] ),
[Previous Amount] - [Amount],
SUMX (
SUMMARIZE ( 'Table', 'Table'[Date], "Difference", [Previous Amount] - [Amount] ),
[Difference]
)
)
You can try this formula and see if it outputs the results you expect. If it still does not work out, please provide more example data.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @sanvass72
I've simulated some data that I hope fits your situation. The function IF(HASONEVALUE()), can control the output of Total.
Difference =
IF (
HASONEVALUE ( 'Table'[Date] ),
[Previous Amount] - [Amount],
SUMX (
SUMMARIZE ( 'Table', 'Table'[Date], "Difference", [Previous Amount] - [Amount] ),
[Difference]
)
)
You can try this formula and see if it outputs the results you expect. If it still does not work out, please provide more example data.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
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.
User | Count |
---|---|
56 | |
32 | |
20 | |
17 | |
15 |
User | Count |
---|---|
53 | |
31 | |
30 | |
23 | |
21 |