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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
Anonymous
Not applicable

How to count all Orders with more than 1 Delivery date?

Hi,

 

I'm looking to count all partial deliveries.

To do this, I want to make a formula counting all ORDER_CODE with 2 or more different DELIVERYTODATE.

 

How do I go about this?

 

This is the formula I tried using:

 

# Partial Deliveries = CALCULATE( DISTINCTCOUNT( TRANSPORT_ORDER[ORDER_CODE]), filter( TRANSPORT_ORDER, DISTINCTCOUNT( TRANSPORT_ORDER[DELIVERYTODATE]) > 1 ))
 
 
Thank you in advance!
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try a new measure like

Countx( filter(summarize(TRANSPORT_ORDER, TRANSPORT_ORDER[ORDER_CODE],"_1",DISTINCTCOUNT( TRANSPORT_ORDER[DELIVERYTODATE]) ), [_1] >1), [ORDER_CODE])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try a new measure like

Countx( filter(summarize(TRANSPORT_ORDER, TRANSPORT_ORDER[ORDER_CODE],"_1",DISTINCTCOUNT( TRANSPORT_ORDER[DELIVERYTODATE]) ), [_1] >1), [ORDER_CODE])

Anonymous
Not applicable

Thank you @amitchandak !

 

So simple, I guess I was thinking too hard 🙂

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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