Using Filter on measures in MDX query on SSRS
Asked Answered
F

1

6

i've creted a report using a cube as datasource and MDX query on my dataset. i have a few measures in my dataset but i want to show wonly the rows with at least one of the measures > 0, using something like an OR filter (measure1 >0 or measure 2 >0 ..etc) how can i do this?

thanks

Fulvi answered 1/3, 2013 at 17:25 Comment(0)
S
5

Use the Filter() clause to constrain the memberset for the rows:

SELECT
  [Measures].[Internet Sales Amount] ON COLUMNS,
  Filter(
    [Customer].[Country].Members, 
    ([Measures].[Internet Sales Amount] > 2000000) 
        AND ([Measures].[Internet Sales Amount] < 5000000)
  ) ON ROWS
FROM [Adventure Works];
Sanborne answered 2/3, 2013 at 4:5 Comment(2)
thanks, i'll try that.. and is there a way to configure a measure filter from the Query Designer > Design Mode?Fulvi
I don't use the Query Designer so I'm not sure, but a quick search turned up this suggestion: basarat.com/2009/08/ssas-with-ssrs-filtering-and-sorting.htmlSanborne

© 2022 - 2024 — McMap. All rights reserved.