Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

Mondrian Query

$
0
0
Hi Team,

Please have a look at the query which gives me the output as below

with member [Measures].[] as '([Measures].[Dollar Amount] / 1000)', FORMAT_STRING = "$ #,##,##,### K"
member [Measures].[latitude] as '[Origin Country].[Region].CurrentMember.Properties("latitude")', FORMAT_STRING = "######.#####"
member [Measures].[longitude] as '[Origin Country].[Region].CurrentMember.Properties("longitude")', FORMAT_STRING = "######.#####"
select {[Measures].[latitude], [Measures].[longitude], [Measures].[]} ON COLUMNS,
Filter({[Origin Country].[N America].children}, ([Measures].[] > 0)) ON ROWS
from [Anciliary Service Cube]
where Crossjoin({[Destination Country].[999]}, {[Time].[2013]})
[Measures].[latitude] [Measures].[longitude] [Measures].[]
[Origin Country].[N America].[Canada] 56. -97. $ 94 K
[Origin Country].[N America].[USA] 37. -93. $ 2394 K


thought the result is as expected but i have a small problem in displaying the result in UI. The problem is when i tried to display the result using a js i am getting the result as Origin Country,N America,Canada,56.,-97.$ 94 K but i dont want the region name i.e N America coming in the result.Reason is that i am using a common js where i have fixed the index to read the respective column but now region name coming along with the country is causing
a problem as it is pushing the country to the next index.

I want something to look like this

Origin Country,Canada,56.,-97.$ 94 K

Viewing all articles
Browse latest Browse all 16689

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>