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 All ,
I have such below Table , Column of Purchase/No PUrchase ; Count are calculated in Edit Query , as of result this is the table :
Customer Code | Customer Name | Date | Value | Purchase/No Purchase | Count |
12345 | Abc | 1/1/2019 | 12 | Purchase | 1 |
12345 | Abc | 2/1/2019 | 23 | Purchase | 1 |
12345 | Abc | 3/1/2019 | 0 | No Purchase | 0 |
45678 | xyz | 1/1/2019 | 12 | Purchase | 1 |
45678 | xyz | 2/1/2019 | 23 | Purchase | 1 |
45678 | xyz | 3/1/2019 | 3 | Purchase | 1 |
Expected Result :
I wanna calculated which customer who re purchased and Non :
If Count >=3 , Repurchased ,
If Count < 3 , No Repurchased ,
I have calculated below columns :
Customer Code | Customer Name | Value | Purchase/No Purchase | Count | Repurchased/No Repurchased |
12345 | Abc | 35 | Purchased | 2 | No Repurchased |
45678 | xyz | 38 | Purchased | 3 | Re Purchased |
Solved! Go to Solution.
Please check below dax.
Count = CALCULATE ( COUNT ( 'Energy Drink'[Customer Name - Store host code] ), FILTER ( ALLSELECTED ( 'Energy Drink' [Customer Name - Store host code]), [Repurchased/No Repurchased]= SELECTEDVALUE('Re-Purchased/No Repurchased'[Type]) ) )
Regards,
Cherie
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 |
---|---|
114 | |
99 | |
83 | |
70 | |
61 |
User | Count |
---|---|
149 | |
114 | |
107 | |
89 | |
67 |