Quantcast
Channel: Pentaho Community Forums - BI Platform
Viewing all articles
Browse latest Browse all 2893

About Time based Filters

$
0
0
Hi everyone

Filter with AnalyzerDateFormat seem to incomplete.
I selected "current month" or "currrent day" on Time based Filters. But record I want is not indicated.
And I check output SQL on pentaho.log then a part of a where clause include "(1=0)".
On the other hand,when I selected "current year",Record appeard.(SQL collect too)
What should I do.

By the way I find same question and solution.
I tried it,but it is
ineffective.

like this
----------------------------------------
<Dimension type="TimeDimension" foreignKey="TIME_ID" name="Time">
<Hierarchy hasAll="true" allMemberName="All Years" primaryKey="TIME_ID">
<Table name="DIM_TIME">
</Table>
<Level name="Years" column="YEAR_ID" type="String" uniqueMembers="true" levelType="TimeYears" hideMemberIf="Never">
<Annotations><Annotation name="AnalyzerDateFormat">[yyyy]</Annotation></Annotations>
</Level>
<Level name="Quarters" column="QTR_NAME" ordinalColumn="QTR_ID" type="String" uniqueMembers="false" levelType="TimeQuarters" hideMemberIf="Never">
<Annotations><Annotation name="AnalyzerDateFormat">[yyyy].['QTR'q]</Annotation></Annotations>
</Level>
<Level name="Months" column="MONTH_NAME" ordinalColumn="MONTH_ID" type="String" uniqueMembers="false" levelType="TimeMonths" hideMemberIf="Never">
<Annotations><Annotation name="AnalyzerDateFormat">[yyyy].['QTR'q].[MMM]</Annotation></Annotations>
</Level>
</Hierarchy>
</Dimension>

Viewing all articles
Browse latest Browse all 2893

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>