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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
RickardBengzon
Frequent Visitor

My card doesn't sum duplicates

Hi!

 

I want to SUM the amout of time it takes to deliver to these places. The problem is where I have duplicates it only sum once.
So for example 682P25 is only sum:ed once 270 not 540 as I want it to be. As you can se on entry-time these are two different deliveries.

So I want the total amount in the right column in my card. The data is form two tables. One table contains Address and the expected delivery time. 

RickardBengzon_1-1641465288239.png

 

 

1 ACCEPTED SOLUTION
v-jayw-msft
Community Support
Community Support

Hi @RickardBengzon ,

 

Check the measure.

Measure =
var _sum = SUM('Table (2)'[value])
return
SUMX('Table (2)',_sum)
Capture.PNG
 
Best Regards,
Jay
Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

View solution in original post

3 REPLIES 3
v-jayw-msft
Community Support
Community Support

Hi @RickardBengzon ,

 

Check the measure.

Measure =
var _sum = SUM('Table (2)'[value])
return
SUMX('Table (2)',_sum)
Capture.PNG
 
Best Regards,
Jay
Community Support Team _ Jay
If this post helps, then please consider Accept it as the solution
to help the other members find it.

Hello,

I think you can try to use a measure with SUMX. It will be something like:

 

MeasureName = SUMX(DISTINCT(TableName[entry_time]),CALCULATE(SUM(TableName[time_seconds])))
amitchandak
Super User
Super User

@RickardBengzon , if duplicate was created because of relation it will not come in total 

 

Get duplicate in total - Correct table name

Sumx(Summarize(Table1, Table[Parcel ID], Table1[Entery Time], Table2[Delivery Address Short], "_1", Sum(Table2[Time]) ) , [_1])

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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