Hi @DylanM,
Thank you for your response.
I have already implemented your second suggestion, which involves displaying hourly and daily production using the period parameter control with free-form layout conditional rules.
This is my hourly production report, which accurately shows the 24-hour production rate from 7 AM yesterday to 7 AM the following day, based on the user’s shift.
Now, the user wants to view the daily production report for a specific range of days by choosing the start and end dates. This is also functioning accurately.
However, if a user wishes to see the hourly production rate for a specific day, e.g., 03/09/23, the only way to achieve this is by using the “Drill down to hour” option to display a 24-hour chart for that particular day.
We have taken this approach to ensure that the hourly production chart aligns with the user’s shift, and I created a calculated field as per your suggestion here.
Here’s the calculated field we used, following your recommendation:
condition3 = ifelse(
addDateTime(7, ‘HH’, ${StartDate}) <= TMST AND TMST <= addDateTime(8, ‘HH’, ${EndDate}),
TMST, NULL
)
However, when I apply the start and end time parameters to filter using the condition3 field, it doesn’t provide accurate visual results when I change the start and end times to a specific day, such as 03/09/23. It only gives accurate values for the previous day.
My goal is to allow users to view the hourly production report for any day they select, either through the start and end time parameters or by using the “Drill down to hour” option in the daily visual.
Could you please advise on the best approach to present these visuals? Thank you.