- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Sum string values for total in rows
Hi, I have this measure that counts my [document number].
I am trying to sum the result so it would show total 660 in all rows.
But which ever solution I tried it just brings back same results as in the image.
I can't do nurmal sum since [document number] is in a text format and sum does not work with strings.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Justas4478 ,
Have you solved your problem? If so, can you share your solution here and mark the correct answer as a standard answer to help other members find it faster? Thank you very much for your kind cooperation!
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @Justas4478 ,
Thanks for the reply from @bhanu_gautam and @Arul , please allow me to provide another insight:
CALCULATE (
DISTINCTCOUNT ( 'Outbound Delivery Document'[DocumentNumber] ),
REMOVEFILTERS ( 'Date'[Date] ),
REMOVEFILTERS ( 'Outbound Delivery Document'[SKU Number] ),
TREATAS (
VALUES ( 'Outbound Delivery'[OutboundDeliveryDocumentKey] ),
'Outbound Delivery Document'[OutboundDeliveryDocumentKey]
)
)
Please try the expression above.
If it does not solve your problem, can you create some representative data and explain the relationship between the tables so that we can better help you solve the problem.
Best Regards,
Clara Gong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@v-kaiyue-msft Unfortunatelly it did not work so i will try to explain relationship the best I can.
Starting from Outbound delivery document table. It has only one relationship:
As you cans see document tabel does not have any direct realtionship with date or product table that holds sku numbers.
Second is Outbound Delivery table that has 4 relationships:
They have connection to the date table via DateKey
They have connection to Product table that holds SKU information.
3rd relationship is to Outbound delivery customer table that holds customer names
The Outbound delivery customer table does not have any other relationships.
Let me know if it helps and if you need I can provide data sample.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

@Justas4478 , Try using measure
TotalDistinctDocumentCount =
CALCULATE(
[DistinctDocumentCount],
ALL('Outbound Delivery Document')
)
Proud to be a Super User! |
|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Can you share PBIX file
Proud to be a Super User! |
|
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Please provide few rows of sample data.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
08-29-2024 12:30 PM | |||
09-10-2024 03:20 AM | |||
08-24-2024 04:38 AM | |||
Anonymous
| 09-06-2024 08:49 AM | ||
07-26-2024 12:46 AM |
User | Count |
---|---|
141 | |
117 | |
80 | |
65 | |
47 |