Forum Discussion
Visitation Counter
- 5 years ago
Hi ctashwin ,
You need a measure instead:
Measure = RANKX(FILTER(ALLSELECTED('Table'),'Table'[Customer ID ]=MAX('Table'[Customer ID ])),CALCULATE(MAX('Table'[Visit Date])),,ASC)And you will see:
The counter will be changed by the selection of dates.
For the related .pbix file,pls see attached.
Best Regards,
KellyDid I answer your question? Mark my post as a solution!
Hi Tom,
Thanks for the reply.
The caclulated column works, but the issue i am facing is i have 2 years worth of data and calculated column creates a counter from day 1 in this case ie if a customer is regular and visits twice a month, his visit counter would give me like 24 for this month.
I am trying to achieve a similar thing, where when i select the last 3 months, the visitaion counter should reset to 1 and start coutning forward.
Thanks for the help
Ashwin
Hey ctashwin ,
please provide sample data, and explain what do you mean by "select the last 3 months". Do you select the the last 3 month inside a report by using a slicer or a filter?
Also provide the expected result as in your initial post.
Regards,
Tom