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 have data as follows:
I want to show sale made by the customer each time.
Please help me to do.
Thanks,
AshDil
Solved! Go to Solution.
maybe you can try to create a new column
Sales time =
var _1=CALCULATE(min('Table'[Date]),ALLEXCEPT('Table','Table'[Cust_ID]))
VAR _2=minx(FILTER(all('Table'),'Table'[Cust_ID]=EARLIER('Table'[Cust_ID])&&'Table'[Date]>_1),'Table'[Date])
VAR _3=minx(FILTER('Table','Table'[Cust_ID]=EARLIER('Table'[Cust_ID])&&'Table'[Date]>_2),'Table'[Date])
VAR _4=minx(FILTER('Table','Table'[Cust_ID]=EARLIER('Table'[Cust_ID])&&'Table'[Date]>_3),'Table'[Date])
return SWITCH('Table'[Date],_1,"Sale 1",_2,"Sale 2",_3,"Sale 3",_4,"Sale 4")
pls see the attachment below
Proud to be a Super User!
Hi,
Share data in a form that can be pasted in MS Excel.
what's the expected output?
Proud to be a Super User!
maybe you can try to create a new column
Sales time =
var _1=CALCULATE(min('Table'[Date]),ALLEXCEPT('Table','Table'[Cust_ID]))
VAR _2=minx(FILTER(all('Table'),'Table'[Cust_ID]=EARLIER('Table'[Cust_ID])&&'Table'[Date]>_1),'Table'[Date])
VAR _3=minx(FILTER('Table','Table'[Cust_ID]=EARLIER('Table'[Cust_ID])&&'Table'[Date]>_2),'Table'[Date])
VAR _4=minx(FILTER('Table','Table'[Cust_ID]=EARLIER('Table'[Cust_ID])&&'Table'[Date]>_3),'Table'[Date])
return SWITCH('Table'[Date],_1,"Sale 1",_2,"Sale 2",_3,"Sale 3",_4,"Sale 4")
pls see the attachment below
Proud to be a Super User!
you are welcome
Proud to be a Super User!
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 |
---|---|
97 | |
94 | |
74 | |
71 | |
64 |
User | Count |
---|---|
143 | |
109 | |
103 | |
82 | |
74 |