Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
What i want is a Matrix where i have First delivery on Rows, Date on Columns and measure Number of customers as Values
We have some discount codes that we give to new customers when they do their first delivery.
And i want to follow those customers, for example if i pick in Slicer discount code = New2018
I get for example in january we have 1300 customers that used the code as their first purchase and i want to see how many of them have have made at least 1 purchase in february and so on.
Right now i export to excel all the customer ID:s and then use as source and create an realtion with other tables and to select just those customers, but i dont want to do this manually everytime my colleagues are asking for this information.
Measure and columns im using are
Measure Number of customers = DISTINCTCOUNT('Order'[MemberId])
Calculated column First delivery = RELATED('Member'[First delivery].[Date])
Column Date from date table
And column Discount code as Slicer
I want it to look something like this as you see 1300 new customers in january and 293 returned in febrary and ofcourse we are just some days into march so thats why that number is so low.
And i want to be able to to so with different discount codes
Year | 2018
Year | January | February | March
2018
January | 1300 | 293 | 41
(Srry for not insterting a picture, dont know how to do it)
thanks in advance
Solved! Go to Solution.
Hi @Anonymous,
Please check out the demo in the attachment.
1. Establish proper relationships. Please see details in the demo.
2. Create a measure.
ReturnfromLastMonth =
VAR firstPurchaseLastMonth =
CALCULATETABLE (
VALUES ( 'Member'[Member`id] ),
PREVIOUSMONTH ( 'Date'[Date] )
)
RETURN
CALCULATE (
DISTINCTCOUNT ( 'Order'[MemberId] ),
'Order'[MemberId] IN firstPurchaseLastMonth
)
Best Regards,
Dale
Hi @Anonymous,
Please check out the demo in the attachment.
1. Establish proper relationships. Please see details in the demo.
2. Create a measure.
ReturnfromLastMonth =
VAR firstPurchaseLastMonth =
CALCULATETABLE (
VALUES ( 'Member'[Member`id] ),
PREVIOUSMONTH ( 'Date'[Date] )
)
RETURN
CALCULATE (
DISTINCTCOUNT ( 'Order'[MemberId] ),
'Order'[MemberId] IN firstPurchaseLastMonth
)
Best Regards,
Dale
https://drive.google.com/drive/folders/1gGV0LNporRDhtzBUj7UkqqBtyRcfE7UR
First picture:
Not filtering anything with my discount code slicer
Second
Im marking Those customers that use discount code NEW.
Third:
Same as second picture but now i marked the 18 first member ids to the right to lock them and follow them on the Matrix
Fourth:
I have released the slicer value NEW so im following those 18 members i marked in third picture.
Problem here is i cant sit and mark every member id becuase its over 1000.(This sample) but i have over 400.000 member id to work with.
This is for my company are giving out some discount codes and we want to follow those customers(right now new customers) and see if we are geting loyal customers or only customers that hunt for discounts.
Matrix
Rows im using "First delivery" column in table "Member" and im only using Year and Month.
Columns im using "Date" column in table "Date" and im only using Year and Month.
Values im using an Measure Churn % = [Number of customers] / CALCULATE([Number of customers] ; FILTER(ALLSELECTED('Date');'Date'[Date]<=MAX('Date'[Date])))
Measure that im not using in the Matrix but in my Churn measure: Number of customers = DISTINCTCOUNT('Order'[MemberId])
Hi @Anonymous,
Did you solve it? Can you share the answer or mark the proper answer as a solution please?
Best Regards,
Dale
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 34 | |
| 32 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 75 | |
| 72 | |
| 38 | |
| 35 | |
| 25 |