Forum Discussion

DirkVr's avatar
DirkVr
Frequent Visitor
3 years ago

Matrix : hide lowest level rows

Hi all,

 

I have Organization Hierarchy of for instance 4 levels. Each organization unit has a type (Region or location). Regions can have subregions or locations. Locations can have sublocations (no subregions). 

Only locations can fill in checklists. In the datamodel I have a table for the organizationunits and a table for the checklists. In the checklist table I have defined several measures. 

We want to create matrix where we can see all regions/subregions but not the locations. In this matrix I want to show the calculated values of the different measures. 

When I create a matrix on the complete Organization Unit table and show the different measures and I filter out all organizationunits which are a location, then no values are shown for the matrix

I leave out the filter, the following is shown

Is it possible to show the image above, with without the "+" sign?

 

The datamodel looks as follows

Where this table contains the following data

The fact table looks like this

with the folllwing content

A few measures:

TotalCompleted =
VAR val = CALCULATE(COUNTROWS(FACT_PublishedChecklist), dim_qualitystatus[Status] = "Completed")
VAR EntityShowRow =
    [EntityBrowseDepth] <= [EntityRowDepth]
VAR Result =
    IF ( EntityShowRow, Val )
return Result
 
TotalWithExceptions =
VAR val = CALCULATE(COUNTROWS(FACT_PublishedChecklist), DIM_QualityStatus[Status] = "Completed with exceptions")
VAR EntityShowRow =
    [EntityBrowseDepth] <= [EntityRowDepth]
VAR Result =
    IF ( EntityShowRow, Val )
return Result
 
 
Total =
VAR val = COUNTROWS(fact_publishedchecklist)
VAR EntityShowRow =
    [EntityBrowseDepth] <= [EntityRowDepth]
VAR Result =
    IF ( EntityShowRow, Val )
return Result
 
 
CompletionScore = ([TotalCompleted]+[TotalWithExceptions])/[Total]

7 Replies