cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
razan_5r5
Frequent Visitor

calculation

how i can sum all the value in one column except one in power bi 

1 ACCEPTED SOLUTION
GilbertQ
Super User
Super User

Hi @razan_5r5 

 

If you mean all except on column you could do use the DAX measure ALLEXECPT

ALLEXCEPT – DAX Guide

 

Otherwise if you are looking to filter out on particular value, you could use the FILTER measure

FILTER - DAX Guide





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

View solution in original post

3 REPLIES 3
naveenmechu
Helper I
Helper I

Hi, 

you can use 

CALCULATE(sum(Table1[cost]), ALLEXCEPT(Table1,Table1[city ]))
 
Hope it will help you.
Please mark it as solution if you got your answer
v-yangliu-msft
Community Support
Community Support

Hi  @razan_5r5 ,

I created some data:

Add [amount1] and [amount2]

vyangliumsft_0-1641955731842.png

Here are the steps you can follow:

Create calculated column.

Sum_Column = 'Table'[amount1] + 'Table'[amount2]

vyangliumsft_1-1641955731850.png

Create measure.

Sum_Measure = SUM('Table'[amount1])+SUM('Table'[amount2])

vyangliumsft_2-1641955731852.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

GilbertQ
Super User
Super User

Hi @razan_5r5 

 

If you mean all except on column you could do use the DAX measure ALLEXECPT

ALLEXCEPT – DAX Guide

 

Otherwise if you are looking to filter out on particular value, you could use the FILTER measure

FILTER - DAX Guide





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!







Power BI Blog

Helpful resources

Announcements
June 2022 update 768X460.jpg

Check it out!

Click here to read more about the June 2022 updates!

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power BI Dev Camp Session 23 768x460.jpg

Check it Out!

Mark your calendars and join us on Thursday, June 30 at 11a PDT for a great session with Ted Pattison!

June 20 episode 7 with aka link 768x460.jpg

The Power BI Community Show

Join us on June 20 at 11 am PDT when Kim Manis shares the latest on Azure Synapse analytics, the Microsoft Intelligent Data Platform, and notable Power BI Updates from Microsoft Build 2022.

Top Solution Authors