Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi, I have this measure that counts my [document number].
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.
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.
@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
@Justas4478 , Try using measure
TotalDistinctDocumentCount =
CALCULATE(
[DistinctDocumentCount],
ALL('Outbound Delivery Document')
)
Proud to be a Super User! |
|
Can you share PBIX file
Proud to be a Super User! |
|
Please provide few rows of sample data.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
123 | |
78 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |