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

Chart problem

$
0
0
Hi I have a fact table which has two FK to one dimensional table which refers to the immigrant and emigrant.

In which way I can design a MDX query which allow to show a PieChart with the percentages?

I tried with the following one, I didn't obtain any result:

Quote:

"with "+
"member [Measures].[NUM_IMMIGRATI] as 'Sum(EXCEPT({[DIM_FLUSSO_MIGRATORIO_INTERNO.LUOGO_FLUSSO_INTERNO].Children}, {[DIM_FLUSSO_MIGRATORIO_INTERNO.LUOGO_FLUSSO_INTERNO].[#null]}), [Measures].[COUNT_PERSONE])' "+
"member [Measures].[NUM_EMIGRATI] as 'Sum(EXCEPT({[DIM_FLUSSO_MIGRATORIO_ESTERNO.LUOGO_FLUSSO_ESTERNO].Children}, {[DIM_FLUSSO_MIGRATORIO_ESTERNO.LUOGO_FLUSSO_ESTERNO].[#null]}), [Measures].[COUNT_PERSONE])' "+
"member [Measures].[TOTALE] as '([Measures].[NUM_IMMIGRATI] + [Measures].[NUM_EMIGRATI])' "+
"select "+
"NON EMPTY{ "+
"[Measures].[NUM_IMMIGRATI], "+
"[Measures].[NUM_EMIGRATI], "+
"[Measures].[TOTALE]} ON COLUMNS, "+
"NON EMPTY{[DIM_PROFESSIONE].[ALL].Children} ON ROWS "+
"from [Anagrafe] "+
"where ([DIM_STATO_RECORD].All) ";
I need your help please... THANKS

Viewing all articles
Browse latest Browse all 16689

Trending Articles



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