The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have this measure,I am trying to some the values on the column € Diferença, but it not right.
Can you help me please?
final mesure:
secundary measures 1:
Solved! Go to Solution.
@Bruce101995
€ Diferença =
SUMX(
SUMMARIZE(
Calendario,
Calendario[MesNome],
"Qty", [qtd],
"Diff", [Diff preço real ORCA]
),
[Qty] * [Diff]
)
If you want to go hardcore clean (sometimes better for debugging):
€ Diferença =
VAR _Table =
ADDCOLUMNS(
VALUES(Calendario[MesNome]),
"Qty", [qtd],
"Diff", [Diff preço real ORCA],
"Result", [qtd] * [Diff preço real ORCA]
)
RETURN
SUMX(_Table, [Result])
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!
Thank you, it worked!
@Bruce101995
€ Diferença =
SUMX(
SUMMARIZE(
Calendario,
Calendario[MesNome],
"Qty", [qtd],
"Diff", [Diff preço real ORCA]
),
[Qty] * [Diff]
)
If you want to go hardcore clean (sometimes better for debugging):
€ Diferença =
VAR _Table =
ADDCOLUMNS(
VALUES(Calendario[MesNome]),
"Qty", [qtd],
"Diff", [Diff preço real ORCA],
"Result", [qtd] * [Diff preço real ORCA]
)
RETURN
SUMX(_Table, [Result])
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !!