sharepoint 2013 - Totals Column MDX Query -


i'm new mdx , have small problem, can me.

i have analytic chart following query:

with    member [articulo].[art_linea].[ aggregation]      aggregate({[articulo].[art_linea].&[3m],[articulo].[art_linea].&[bendix]})     ,solve_order = 0  select      hierarchize     (       {         [almacen].[alm_nombre].&[matriz]        ,[almacen].[alm_nombre].&[toluca]       }     )   *      {       [measures].[val]      ,[measures].[disponible]     } on columns  ,hierarchize   (     {       [articulo].[lcd].[art_linea].&[3m]      ,[articulo].[lcd].[art_linea].&[bendix]     }   ) on rows [inventario]    [articulo].[art_linea].[ aggregation] cell properties    value  ,formatted_value  ,cell_ordinal  ,font_flags  ,fore_color  ,back_color; 

which returns following grid:

analytic chart

i add "totals" column sum of "val" , "disponible" measures of columns "matriz" , "toluca" each "articulo lcd".

could guide me in how it? i'm not sure how implement "sum" function.

beforehand thank much.

greetings!

maybe try this:

with    member [articulo].[art_linea].[ aggregation]      aggregate({[articulo].[art_linea].&[3m],[articulo].[art_linea].&[bendix]})     ,solve_order = 0    member [articulo].[lcd].[all].[3m+bendix] //<<you might need play around here - maybe correct name?: [articulo].[lcd].[all].[art_linea].[3m+bendix]     sum     (       {         [articulo].[lcd].[art_linea].&[3m]        ,[articulo].[lcd].[art_linea].&[bendix]       }     )  select      hierarchize     (       {         [almacen].[alm_nombre].&[matriz]        ,[almacen].[alm_nombre].&[toluca]       }     )   *      {       [measures].[val]      ,[measures].[disponible]     } on columns  ,hierarchize   (     {       [articulo].[lcd].[art_linea].&[3m]      ,[articulo].[lcd].[art_linea].&[bendix]      ,[articulo].[lcd].[all].[3m+bendix]  //<<you might need play around here - maybe correct name?: [articulo].[lcd].[all].[art_linea].[3m+bendix]     }   ) on rows [inventario]    [articulo].[art_linea].[ aggregation]; 

although i'm little unsure of purpose of aggregation member - maybe following?

with    member [articulo].[lcd].[all].[3m+bendix] //<<you might need play around here - maybe correct name?: [articulo].[lcd].[all].[art_linea].[3m+bendix]     sum     (       {         [articulo].[lcd].[art_linea].&[3m]        ,[articulo].[lcd].[art_linea].&[bendix]       }     )  select      hierarchize     (       {         [almacen].[alm_nombre].&[matriz]        ,[almacen].[alm_nombre].&[toluca]       }     )   *      {       [measures].[val]      ,[measures].[disponible]     } on columns  ,hierarchize   (     {       [articulo].[lcd].[art_linea].&[3m]      ,[articulo].[lcd].[art_linea].&[bendix]      ,[articulo].[lcd].[all].[3m+bendix]  //<<you might need play around here - maybe correct name?: [articulo].[lcd].[all].[art_linea].[3m+bendix]     }   ) on rows [inventario]; 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -