Historical filtering on mdx query with multiple date dimensions
<p>I have a cube with two date dimension and I need to filter the results of my query like this SQL condition:</p>

<pre><code>WHERE fechavalidezdesde &lt;= 2016-01-01
AND (fechavalidezhasta IS NULL OR (fechavalidezhasta &gt; 2016-01-01))
</code></pre>

<p>I do this filter, but, I failed setting the another condition.</p>

<pre><code>WHERE (
    FILTER([Fecha Validez Hasta].Members, 
    isEmpty([Fecha Validez Hasta].CURRENTMEMBER) OR
    [Fecha Validez Hasta].CURRENTMEMBER &gt; [Fecha Validez Hasta].[2016].[2].[17])
)
</code></pre>

<p>Please, anyone have an idea how to do this?</p>