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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Henrikwcarlsson
Frequent Visitor

Summarize total value of order on each row

Hi Forum!

 

Need some help with a simple DAX formula calcualting the total order value of the ordernumber as a measure. I can't create my own tables due to restrictions.

 

Any ideas?

 

Henrikwcarlsson_0-1717755903817.png

 

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

Hi, @Henrikwcarlsson 

Thanks for @olgad an @Rupak_bi reply. You can refer to their method, or you can try this.

vyaningymsft_0-1718000873706.png

allSales =
CALCULATE ( [sales], ALL () )

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

View solution in original post

6 REPLIES 6
v-yaningy-msft
Community Support
Community Support

Hi, @Henrikwcarlsson 

Thanks for @olgad an @Rupak_bi reply. You can refer to their method, or you can try this.

vyaningymsft_0-1718000873706.png

allSales =
CALCULATE ( [sales], ALL () )

 

Best Regards,
Yang
Community Support Team

 

If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
If I misunderstand your needs or you still have problems on it, please feel free to let us know. Thanks a lot!

How to get your questions answered quickly --  How to provide sample data in the Power BI Forum

Rupak_bi
Post Prodigy
Post Prodigy

Ok, try following formula. If still not works, share some sample data.

measure = Sumx(allexcept(table, order no.), "Omsättning2 measure)



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/
Rupak_bi
Post Prodigy
Post Prodigy

measure = calculate(sum(table,value),allexcept(table,order no.))

If this works, Please accept as solution.



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/
olgad
Super User
Super User

Hi, 
Calculate(Sum(Value), All(Ordernr))

Sum(Value)-the values of your orders
All(either the whole table where the order numbers are residing or just the order number column) depends what you want to achieve. Choose between All() and Allselected(), All() for all the order numbers, Allselected() for all the selected, filtered orders. 


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Sadly this does not work or I'm doing something wrong. I belive the problem is that "Omsättning2" which is the value I wan't to calculate only exists as a measure and not as a table?

Calculate(Omsättning2, All(Ordernr))


DID I ANSWER YOUR QUESTION? PLEASE MARK MY POST AS A SOLUTION! APPRECIATE YOUR KUDO/LIKE!
PROUD TO BE A SUPER USER!
Best Stories, Interesting Cases: PowerBI Storytime Newsletter
Linkedin Profile: Linkedin
YouTube Channel: PowerBI Storytime

Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.