Note that there are some explanatory texts on larger screens.

plurals
  1. POMDX filter problem
    primarykey
    data
    text
    <p>I'm pretty new to the whole MDX thing, but the following is just driving me batty. A <code>FILTER</code> statement I'm using is acting... strangely. Code sample, followed by description:</p> <pre><code>SELECT { FILTER( MEMBERS([Time].[5-4-4 Week Year]), [Measures].[Ship Gross Units] &gt; 0 ) } ON COLUMNS, { FILTER( MEMBERS([Group].[Alternate Hierarchies]), [Measures].[Ship Gross Units] &gt; 0 ) } ON ROWS FROM SBD.SBD WHERE ( [FiscalYear].[FY09], [Scenario].[Actuals Total], [Measures].[Ship Gross Units], [Channel].[FOS] ) </code></pre> <p>I'm trying to pull gross units for a particular sales channel, by week of the fiscal year (some columns obfuscated slightly). All those filters are in place due to the fact that I often need these broken out at the SKU level, and it's simpler to deal with a truncated dataset on my machine (let the DB do the work, I say!).</p> <p><strong>The problem is</strong>, this query returns 0 sales in the FOS channel. That seemed strange, so I removed the row filter:</p> <pre><code>SELECT { FILTER( MEMBERS([Time].[5-4-4 Week Year]), [Measures].[Ship Gross Units] &gt; 0 ) } ON COLUMNS, MEMBERS([Group].[Alternate Hierarchies]) ON ROWS FROM SBD.SBD WHERE ( [FiscalYear].[FY09], [Scenario].[Actuals Total], [Measures].[Ship Gross Units], [Channel].[FOS] ) </code></pre> <p>And all of a sudden, sales show up in the FOS channel. This blows my mind; previously, I'd assumed I was filtering to just receive rows showing sales, and I got none. Now I'm showing everything, and there are rows with sales. It's easy enough to work around this problem with Perl or whatever, but I'd rather solve it "right".</p> <p>I'm reasonably certain I'm just misunderstanding some niggling detail, but I'm tired of bashing my head against the desk.</p> <p>Thanks!</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload