Forum Discussion
Retrieve results set based on user input date. if date not available pick the most recent one.
- Anonymous7 years ago
Thanks Cherie for your reply. I am planning to have SSIS to do this job to create dataset and later consume in power BI.
Can i get a pseudo steps for how this can be done.
I am thinking of doing the following.
1. Have a date table and compare the stock date in stock table with date in data table.
2. for missing dates in stock table, create a calculated column to capture the stock count from previous available date.
3. in the service, when the user selects a date, get a the stock details if its available from stock table, if not populate from the calculated column derived in step 2.
Please let me know if above approach is correct.
Hi Anonymous
Correct.I would suggest you use measure to get the dynamic date from columns when user selects a date.Here is the post for your reference.
Regards,
Cherie
- Anonymous7 years agoNot applicable
Thanks Cherie for your reply. I am planning to have SSIS to do this job to create dataset and later consume in power BI.
- v-cherch-msft7 years ago
Microsoft Employee
Hi Anonymous
Got it, if you have resolved the issue, please mark the right reply as answer, and welcome to share your own solution. More people will benefit from here.
Regards,
Cherie