This can be done without any JSL BUT your data has to be in specific format (tall/stacked) and it should have limit columns.
jthi_0-1686720824872.png
jthi_1-1686720892757.png
If this won't work for you other option would be to split the data by grouping variable, set separate specification limits and use column switcher instead of local data filter.
jthi_2-1686721051783.png
jthi_3-1686721166450.png
Or you could use scripting solution. How it should be scripted depends on your data and where the limits are stored.
-Jarmo