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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Client and Order Counts?

Hi

 

In my dataset we have a client ID, the channel we used to target them, the month we targeted them and the date we recieved the order. There are a bunch of other columns that we want to be able to filter on using a slicer in the report. 

 

UniqueIClientIDTargetMonthChannelOrder Date
91/1/2018Direct Mail10-Jan-18
51/1/2018Direct Mail 
41/1/2018Direct Mail2-Feb-18
81/1/2018Email3-Mar-18
32/1/2018Direct Mail 
22/1/2018Email4-Feb-18
12/1/2018Email10-Mar-18
102/1/2018Email 
73/1/2018Email10-Mar-18
63/1/2018Email3-Mar-18

 

I want to have a date slicer in my report which is based on the order date. The user can 

 

I want to get a table/matrix visual to show the following

 

Channel name - # clients - # Orders - #ConversionRate

 

#clients = no of unique clientID in the target month or perriod selected in the date slicer. (as mentioned the slicer is based on the order date) 

#orders = no. of unique clientID where orderdate is not null and falls in the period selected in the date slicer 

 

I am stumped. Would anyone be able to please help?

 

Thanks

Anupam

 

1 ACCEPTED SOLUTION
parry2k
Super User
Super User

@Anonymous try following measures:

 

# Clients = COUNT( Table[UniqueClientId] )
# Orders = 
CALCULATE( [# Clients], Table[Order Date] <> BLANK() )

Use table visual, add "Channel", "# Clients", "# Orders" on value and check the result.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

1 REPLY 1
parry2k
Super User
Super User

@Anonymous try following measures:

 

# Clients = COUNT( Table[UniqueClientId] )
# Orders = 
CALCULATE( [# Clients], Table[Order Date] <> BLANK() )

Use table visual, add "Channel", "# Clients", "# Orders" on value and check the result.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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