cancel
Showing results for 
Search instead for 
Did you mean: 

MoveDimensionToRows

0 Kudos

Issue: The moveDimensionToRows does not replace the existing dimension in the 0 position.

If start with Region as the dimension on the initial view, Region is in the 0 position.

And the chart works find. See X-axis only below

Next Step: change to view Sales Channels. Region should be replaced by Sales Channel as per the code above. The Sales Channel takes over the 0 position but the Region is pushed to 1.

And as would be expected the chart has both dimensions

This worked on Design Studio 1.6 SP4. When we moved to Lumira the issue appeared.

The documentation states

View Entire Topic
MustafaBensan
Active Contributor
0 Kudos

Hi James,

As per the documentation you've highlighted, existing dimensions are only replaced if you specify the optional position parameter. Based on your code, it seems you are not using the position parameter so the behaviour is as expected.

The swapDimensions() method may be more appropriate for your requirement.

Regards,

Mustafa.