Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
AlineCarvalho
New Member

DAX - soma de totais

Eu tenho um cálculo assim:

eu preciso descobrir um delta de custo entre ciclos diferentes por produto, e este custo é composto de várias linhas.

Aí tenho uma medida assim:

ENVELOPE detailed =

VAR delta = [TDF Cost NoFX]-[TDF Cost Oldest]

VAR volumevar = SUM(Volume[VOLUME])

RETURN
delta*volumevar
e depois eu preciso da soma total por linha de custo, só que como na minha medida eu tenho uma multiplicação: delta*volume

o que ele ta fazendo, ele soma os deltas e depois multiplica pelo volume, e aí da um numero nada a ver
alguém pode me dar uma ajuda em como fazer pra não somar esses deltas?

Eu preciso que ele pegue cada delta individualmente e multiplique pelo volume, e depois some tudo em cada linha de custo.

Tipo assim:

Custo A = TOTAL produto X + TOTAL produto Y 

Custo B = TOTAL produto X + TOTAL produto Y

Custo C = TOTAL produto X + TOTAL produto Y

Obrigada

1 ACCEPTED SOLUTION
v-yalanwu-msft
Community Support
Community Support

Hi, @AlineCarvalho ;

Is your problem solved? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
AlineCarvalho
New Member

Thank you.

 

I found the solution. I used:

FILTER(RELATED TABLE(TABLE),TABLE[COLUMN] = "category")

Thank you

v-yalanwu-msft
Community Support
Community Support

Hi, @AlineCarvalho ;

Is your problem solved? If so, Would you mind accept the helpful replies as solutions? Then we are able to close the thread. More people who have the same requirement will find the solution quickly and benefit here. Thank you.


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

v-yalanwu-msft
Community Support
Community Support

Hi, @AlineCarvalho ;

Can you share  a simple data removing sensitive information, along with the results you want to output?

It makes it easier to give you a solution.

 


Best Regards,
Community Support Team _ Yalan Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.