Hello Mohit,
It is possible by the idea showed in the above link Priayanka has provided. PFB a demo with similar logic.
you have to input your week selection values manually as shown in doc and link the value to a variable. in this example its week_dummy. Get the week number from week dimension as a measure and get selected week number from another another measure variable as shown below.
create a measure variable which returns value less than or equal to selected week number.
based on your requirement you can customize this formula. it will work like as shown below.
cross tab in right side shows the actual data for 4 weeks and in first selection only week 1 selected and in second screen shot week 3 selected which shows data till week 3.
Let me know if you need any other details.
Hope it helps.
Regards,
Nikhil Joy