cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Route111
Helper III
Helper III

Tricky Sum Measure

Hi Experts

 

I Want to sum two columns in a table, with an expection for 3 companies in the FACT_Table. Where the company name are 

1. ABC

2. DDS

3. KKS 

we need to add an addtional value to the sum which need to be manually added to the measure they are not in the fact table

1. 900

2. 600

3. 450

 

All other companies are col 1 + Col 2 for total Sales.

Campnay NameCol 1Col 2Result
ABC123
DDS123
DDS123
KKS123
KKS123
KKS123
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Route111 , expected output is not clear

 

a measure like

 

calculate(sum(Table[Col1])+sum([Col2]), Filter(Table, not Table[Company] in {"ABC", "DDS", "KKS"} ))

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Route111 , expected output is not clear

 

a measure like

 

calculate(sum(Table[Col1])+sum([Col2]), Filter(Table, not Table[Company] in {"ABC", "DDS", "KKS"} ))

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!! !!
Dashboard of My Blogs !! Connect on Linkedin
Want To Learn Power BI
Learn Power BI Beginners !! Advance Power BI Concepts !! Power BI For Tableau User !! Learn Power BI in Hindi !!
Proud to be a Super User!

View solution in original post

Helpful resources

Announcements
Power BI December 2021 Update_carousel 768x460.jpg

Check it Out!

Click here to read more about the December 2021 Updates!

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Jan 2022 Dev Camp 768x460 copy.png

Power BI Dev Camp- January 27th, 2022

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors