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.
Hi,
I want to do a brand switch analysis,
i have following table, where in 2020/6 the brand "ABC" did an advertising campaign for their product "water".
I want to get 3 values:
1) new customer (during campaign) -> 1 (customer id no. 2)
2) brand switch (during campaign) -> 1 (customer id no. 1, switch from DEF to ABC)
3) repeat (no change in purchase behaviour) -> 1 (customer id no.3 , no change before and after the campaign bought ABC's water)
year-month | customer id | product (bought) | brand name | advertising flag |
2020/5 | 1 | water | DEF | |
2020/5 | 3 | water | ABC | |
2020/6 | 2 | water | ABC | yes |
2020/6 | 1 | water | ABC | yes |
2020/6 | 3 | water | ABC | yes |
Solved! Go to Solution.
@Anonymous , for the new customer, you can column/measure rank of Month inside the customer , so rank one means new.
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415
@Anonymous , for the new customer, you can column/measure rank of Month inside the customer , so rank one means new.
For Rank Refer these links
https://radacad.com/how-to-use-rankx-in-dax-part-2-of-3-calculated-measures
https://radacad.com/how-to-use-rankx-in-dax-part-1-of-3-calculated-columns
https://radacad.com/how-to-use-rankx-in-dax-part-3-of-3-the-finale
https://community.powerbi.com/t5/Community-Blog/Dynamic-TopN-made-easy-with-What-If-Parameter/ba-p/367415
thanks, these articles were helpful!
I thought I'd share my solution quickly.
new customer=
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |