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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
motta
New Member

Sum only one row per distinct Value in column

Hello! 

I'm stuck with the following problem. I got different tool types used in the same run and I need to get the total used time for all 3 runs. Basically I need to dismiss the duplicated values for each run and add them up. Can some one help me with that?

 

 

Run IDUsed timeTool Type
11.2Tool 1 
11.2Tool 2
11.2Tool 1 
11.2Tool 3
25.2Tool 2
25.2Tool 3
32.4Tool 1 
32.4Tool 2
32.4Tool 3
32.4Tool 4
32.4Tool 2
1 ACCEPTED SOLUTION

Not really, but thanks!

 

The below actually worked

 

Total Used hours = VAR distincttable =
SUMMARIZE ( 'Table', [RunID] , [Used Time] )
RETURN
SUMX ( distincttable, [Used Time] )

View solution in original post

2 REPLIES 2
Dangar332
Super User
Super User

Hi, @motta 

 

try below code 

 

 

result = 
   calculate(
       sum('yourtable'[used time]),
       allexcept('yourtable','yourtable'[run id])
             )

 

 

Dangar332_0-1698559502285.png

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. and don't forget to give kudos.

 

Not really, but thanks!

 

The below actually worked

 

Total Used hours = VAR distincttable =
SUMMARIZE ( 'Table', [RunID] , [Used Time] )
RETURN
SUMX ( distincttable, [Used Time] )

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.