Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have countries and cites in two fields. and want to have a graph with countries and cities as dimensions and sales as expression.
I want to have a bar chart with both dimensions in X-Axsis. I have created calculated dimension as 1 and then i can do that.
But my x-asis shows all the cities for all counties.
Eg- I have two countries, USA and ENGLAND
and cities as Newyork, Florida, London , Liverpool.
so my x axis show Newyork, Florida, London , Liverpool for both cities.
But i want to have it as Newyork, Florida under USa and London , Liverpool under London
u can use grouping...
In Script?
If you are having relationship b/w Country and City, then you can create a Drill Group of both Dimension.
like Country->City
Is this sufficient?
Create a dummy expression (say, =1) and then make it invisible, you would get your second dimension values grouped on axis.
in bar chart..u hve to create drill down group.. country---> city
by that it will helps you
Thanks
Suresh
HI,
Do you have mapping between Country & City, if not derive a mapping table like belo
LOAD
*
INLINE [
City, Country
Newyork, USA
Florida, USA
London , London
Liverpool, London];
Now use Country and City dimensions. Hope this helps you
Regards,
Jagan.
See the attached Image,
In Dimension Tab of Chart,
Click on Edit Group->New->Select DRill Group from Top Left->Give The Name of Group->Add dimension, in your case , 1st Dim is Country then City->ok
And then add this drill group name as a dimension in your chart..
I Have done it, but the problem i have is all the 2nd dimenssion values available under both 1st dimenssion
drill down doesn't show both dimenssion in one time