When using Function-backed layers in Chart XY, I need the ability to retrieve filter information from the second layer.

I’ve placed a Chart XY in Workshop and created a ThreeDimensionalAggregation bar chart using Function-backed layers. However, when I select a segment, the “Selection as filter” only reflects the first layer (X-axis) segments. The second layer (bar chart segments) filter information is not captured.

How can I retrieve filter information for both the first layer (X-axis) and the second layer (bar chart segments)? If this is not possible, please consider implementing a solution to allow retrieval of the second layer’s filter information.