Only Showing 'Previous Data' if ProjectID Matches

Stimulsoft Reports.JS discussion
Post Reply
ericp
Posts: 41
Joined: Mon Aug 21, 2023 9:22 pm

Only Showing 'Previous Data' if ProjectID Matches

Post by ericp »

I currently have a scenario where I want to create a report that shows 'current' data as well as the 'previous' data. I have created a report where it shows most of the information, but was wondering how I can create a condition that shows 'previous' data that ONLY matches the correct ProjectID - right now my second data table is showing all 'previous' data instead of just the one that matches the 'current' data. I have provided screenshots of my Report.JS designer file and a previous of what it's generating in Preview.
Attachments
Screen Shot 2023-09-02 at 10.49.50 PM.png
Screen Shot 2023-09-02 at 10.49.50 PM.png (494.31 KiB) Viewed 6991 times
Screen Shot 2023-09-02 at 10.46.04 PM.png
Screen Shot 2023-09-02 at 10.46.04 PM.png (632.92 KiB) Viewed 6991 times
ericp
Posts: 41
Joined: Mon Aug 21, 2023 9:22 pm

Re: Only Showing 'Previous Data' if ProjectID Matches

Post by ericp »

I figured out a way to set a filter that says show if 'previous' ID matches 'current' ID, but then it'll lock on project 10109, and if I look at Project10110, it will just show me the 'previous' data for 10109 rather than 10110.
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Only Showing 'Previous Data' if ProjectID Matches

Post by Lech Kulikowski »

Hello,

Please send us your report with test data for analysis.

Thank you.
ericp
Posts: 41
Joined: Mon Aug 21, 2023 9:22 pm

Re: Only Showing 'Previous Data' if ProjectID Matches

Post by ericp »

Please see the attached file
Attachments
TestReport.mrt
(100.49 KiB) Downloaded 63 times
ericp
Posts: 41
Joined: Mon Aug 21, 2023 9:22 pm

Re: Only Showing 'Previous Data' if ProjectID Matches

Post by ericp »

Nevermind - found the solution!
Lech Kulikowski
Posts: 6271
Joined: Tue Mar 20, 2018 5:34 am

Re: Only Showing 'Previous Data' if ProjectID Matches

Post by Lech Kulikowski »

Hello,

Ok. Thank you for the information.
Post Reply