I Want to Create an MDX Query Builder with javascript and I need a rules to check is query need for CrossJoin or Union . i find mdx-js but this library has not implement of CrossJoin so i want to Add this feature to `mdx-js.for example i have some dimension like this on columns:
COLUMNS: [Aircraft].[Aircraft Type].[Type]
[Altitude].[Altitude]
[Aircraft].[Aircraft Engines].[Engines]
so how to decide when write and use crossjoin or union.