Good morning everybody,
i have a problem to show my date (year) in saiku. The data which i will in saiku comes from a view in MySql. This is the SELECT for the view:
In my Table ACBTASK i have three columns (TAG (DAY), MONAT (MONTH), JAHR (YEAR)). In this columns are 200 entries with Date TAG: 30 , MONAT: 04, JAHR: 2012 and 200 entries with Date TAG: 05, MONAT: 11, JAHR: 2012 and 200 entries with Date TAG: 11 MONAT: 09 JAHR: 2013
Here is my XML File:
And the i go to saiku and drag the Level Jahr into Column. The Level Entwicklername and Kunde to Rows and the measure fakturierte Stunden into Rows.
The Result is:
Unbenannt.JPG
But this is wrong. The result should look like this:
JAHR: 2012 FAKTTURIERTE STUNDEN: 8 JAHR: 2013 FAKTURIERTE STUNDEN: 0
2012 should be displayed only once
Can anybody help me?
Thanks :)
i have a problem to show my date (year) in saiku. The data which i will in saiku comes from a view in MySql. This is the SELECT for the view:
Code:
SELECT DATE(TH.DATE) , U.DEVELOPERNAME, TH.COST AS alle, (IF(TH.`IS_INVOICED` = 1, TH.COST,0)) AS fakturiert, (IF(TH.`IS_INVOICED` = 0, TH.COST, 0 )) AS offen, T.TITLE, T.PLANNEDCOSTHOUR, T.PROGRESS, C.NAME AS CUSTOMERNAME, P.NAME AS PROJECTNAME , TT.NAME1 AS TaskType, PT.NAME1 AS ProjectType, ts.NAME1 AS Taskstatus, T.STARTDATE AS Startdatum, T.TAG AS Tag, T.MONAT AS Monat, T.JAHR AS Jahr FROM ACBCOSTHISTORY TH LEFT JOIN ACSUSER U ON U.ID = TH.USERID LEFT JOIN ACBTASK T ON T.ID = TH.TASKID LEFT JOIN ACSTASKSTATUS ts ON ts.ID = t.STATUSID LEFT JOIN ACBPROJECT P ON P.ID = T.PROJECTID LEFT JOIN ACBCUSTOMER C ON C.ID = P.CUSTOMERID LEFT JOIN ACSTASKTYPE TT ON TT.`ID` = T.`TYPEID` LEFT JOIN ACSPROJECTTYPE PT ON PT.`ID` = P.TYPEID GROUP BY DATE(TH.DATE), TH.USERID , TH.TASKID;
Here is my XML File:
Code:
<?xml version="1.0"?> <Schema name="PMS"> <Cube name="PMS"> <Table name="testtasks"/> <Dimension name="Entwicklername"> <Hierarchy hasAll="true" allMemberName="All Types"> <Level name="Entwicklername" column="DEVELOPERNAME" uniqueMembers="true"/> </Hierarchy> </Dimension> <Dimension name="Titel"> <Hierarchy hasAll="true" allMemberName="All Types"> <Level name="Titel" column="TITLE" uniqueMembers="true"/> </Hierarchy> </Dimension> <Dimension name="Kunde"> <Hierarchy hasAll="true" allMemberName="All Types"> <Level name="Kunde" column="CUSTOMERNAME" uniqueMembers="true"/> </Hierarchy> </Dimension> <Dimension name="Projectname"> <Hierarchy hasAll="true" allMemberName="All Types"> <Level name="Projectname" column="PROJECTNAME" uniqueMembers="true"/> </Hierarchy> </Dimension> <Dimension name="Tasktyp"> <Hierarchy hasAll="true" allMemberName="All Types"> <Level name="Tasktyp" column="TaskType" uniqueMembers="true"/> </Hierarchy> </Dimension> <Dimension name="Projecttype"> <Hierarchy hasAll="true" allMemberName="All Types"> <Level name="Projecttype" column="ProjectType" uniqueMembers="true"/> </Hierarchy> </Dimension> <Dimension name="Taskstatus"> <Hierarchy hasAll="true" allMemberName="All Types"> <Level name="Taskstatus" column="NAME1" uniqueMembers="true"/> </Hierarchy> </Dimension> <Dimension name="Datum" type="TimeDimension"> <Hierarchy hasAll="true" allMemberName="All Types"> <Level name="Monat" column="Monat" uniqueMembers="false" levelType="TimeMonths" type="Numeric"/> <Level name="Jahr" column="Jahr" uniqueMembers="true" levelType="TimeYears" type="Numeric"/> </Hierarchy> </Dimension> <Measure name="alle Stunden" column="alle" aggregator="sum" formatString="Standard"/> <Measure name="fakturierte Stunden" column="fakturiert" aggregator="sum" formatString="Standard"/> <Measure name="offene Stunden" column="offen" aggregator="sum" formatString="Standard"/> <Measure name="geplante Stunden" column="PLANNEDCOSTHOUR" aggregator="sum" formatString="Standard"/> </Cube> </Schema>
And the i go to saiku and drag the Level Jahr into Column. The Level Entwicklername and Kunde to Rows and the measure fakturierte Stunden into Rows.
The Result is:
Unbenannt.JPG
But this is wrong. The result should look like this:
JAHR: 2012 FAKTTURIERTE STUNDEN: 8 JAHR: 2013 FAKTURIERTE STUNDEN: 0
2012 should be displayed only once
Can anybody help me?
Thanks :)