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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

Reply
john_Learner
New Member

How to do sum for a distinct column

Hi , I have 4 columns: 
Network Team, Pre sales, Demo score and Demo code. Now i need to filter distinct demo code and get the sum of demo score for the filtered demo codes.

output should have sum of demo score for unique demo codes.

 

Network Team Pre Sales Network ID Demo Score Demo code
SN8 SNB95 30 500131583
SN8 SNB95 30 500135175
SN8 SNB95 30 500151146
SN8 SNB95 30 500157277
SN8 SNB95 30 500159496
SN8 SNB95 30 500161054
SN8 SNB95 30 500163768
SN8 SNB95 60 500168156
SN8 SNB95 30 500176941
SN8 SNB95 30 500177938
SN8 SNB95 30 500178852
SN8 SNB95 30 500179668
SN8 SNB95 0 500180289
SN8 SNB95 30 500181796
SN8 SNB95 30 500185810
SN8 SNB95 60 500188107
SN8 SNB95 30 500190337
SN8 SNB95 30 500191211
SN8 SNB95 30 500191546
SN8 SNB95 30 500194877
SN8 SNB95 30 500195777
SN8 SNB95 30 500198717
SN8 SNB95 30 500202641
SN8 SNB95 30 500203523
SN8 SNB95 30 500203617
SN8 SNB95 30 500221736
SN8 SNB95 30 500223835
SN8 SNB95 30 500246684
SN2 SNB65 30 500199060
SN2 SNB65 30 500203113
SN2 SNB65 30 500203540
SN2 SNB65 30 500204924
SN8 SNB95 30 500198717
SN8 SNB95 30 500202641
SN8 SNB87 30 500025628
SN8 SNB87 30 500025948
SN8 SNB87 0 500026287
SN8 SNB87 30 500026474
SN8 SNB87 30 500029248
SN8 SNB87 30 500034051
SN8 SNB87 0 500034393
SN8 SNB87 30 500034396
SN8 SNB87 0 500034867
SN8 SNB87 30 500035992
SN8 SNB87 30 500036092
SN8 SNB87 0 500039025
SN8 SNB87 0 500040815

4 REPLIES 4
john_Learner
New Member

sorry its not giving me the desired result

john_Learner
New Member

need help please

john_Learner
New Member

please neeed help

@john_Learner ,

 

Sumx(Summarize(Table, Table[Demo code], Table[Demo Score]), [Demo Score])

 

Or

 

Sumx(Summarize(Table, Table[Demo code], "_1",Max(Table[Demo Score]) ), [Demo Score])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

Check out the October 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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

Users online (1,786)