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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

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

@Anonymous , expected output is not clear

 

a measure like

 

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

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , expected output is not clear

 

a measure like

 

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

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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