on 2021 Feb 04 10:09 AM
Hi All,
I have a requirement to restrict my report to last 6 months data based on the user selected month in the selection screen.
Eg : I have Cal year/month field in the selection screen, if a user selects June 2020, he should be seeing months Jan to Jun in the below format.
If a user selects Jan 2020, he should be seeing Jan 2020 to June 2020.
If a user selects Feb 2020, he should see Jan2020 to Jun 2020.
If a user selects Mar 2020, he should see Jan2020 to Jun 2020.
If a user selects Apr 2020, he should see Jan2020 to Jun 2020.
If a user selects May 2020, he should see Jan2020 to Jun 2020.
If a user selects Jun 2020, he should see Jan2020 to Jun 2020.
If a user selects Jul 2020, he should see Feb 2020 to Jul 2020.
If a user selects Aug 2020, he should see Mar 2020 to aug 2020.
If a user selects Sep 2020, he should see Apr 2020 to Sep 2020.
If a user selects Oct 2020, he should see May 2020 to Oct 2020.
If a user selects Nov 2020, he should see Jun 2020 to Nov 2020.
If a user selects Dec 2020, he should see Jul 2020 to Dec 2020.
Month should always start from Jan and should not go into the previous year.
so for every selection a user makes, we need to show only 6 months data in the format shown above. This should be dynamic based on the year and month a user selects.
This is how my data looks like in the backend.
can someone please let me know how we can achieve this?
Thank you
Poojitha
Do you need this at Unv or Report level?
Is the user selection a prompt or an input control selection?
Do you have also the month as a number in your backend data?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Your requirement is not easy to meet because: First, the format for your "Cal Year / Month" backend data is not appropriate for queries like "less than or greater than".
Second, part of the solution should be performed at the unv/unx level to avoid unnecessary data in the report (reducing the amount of data stored in the report)
(note the difference between query data and data displayed
also the difference between query prompt and input control).
User | Count |
---|---|
79 | |
10 | |
10 | |
10 | |
10 | |
9 | |
8 | |
7 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.