Hi All I am new to MDX language and need a MDX functions/query on the cube to get the required output, Given below is the scenario with the data. I am maintaining the data in a table in dataMart with given structure. We have the data at day and weekly in a single table with granularity indicator and count is the measure group column. While loading the data in to mart table we are populaiting the week Key from week table and Month key from month table and joining in the cube.we need to calculate the inventory for a particular month. If a user selects a particular month the output would be count = 30 as a measure called Closed and count = 16 as a measure value called Open.Need a MDX query to get output.Granularity Count WeekKey MonthKeyDaily 10 w1 M1Daily 11 w2 M1Daily 12 w3 M1Daily 13 w1 M1Daily 14 w2 M1Daily 15 w1 M1Weekly 16 W1 M1Weekly 17 W1 M1Weekly 18 w1 M1Weekly 19 W1 M1Weekly 20 W1 M1Weekly 21 W1 M1Weekly 22 W1 M1Weekly 23 w2 M1Weekly 24 w2 M1Weekly 25 w2 M1Weekly 26 w2 M1Weekly 27 w2 M1Weekly 28 w2 M1Weekly 29 w2 M1Weekly 30 w2 M1Weekly 16 w3 M1Weekly 17 w3 M1Weekly 18 w3 M1Weekly 19 w3 M1Weekly 20 w3 M1Weekly 21 w3 M1Weekly 22 w3 M1Weekly 23 w4 M1Weekly 24 w4 M1Weekly 25 w4 M1Weekly 26 w4 M1Weekly 27 w4 M1Weekly 28 w4 M1Weekly 29 w4 M1Weekly 30 w4 M1Thanks in advance
↧