Forum Discussion
mjcuccia
7 years agoFrequent Visitor
hierarchy row counts
I have a need to get the row count for a particular level in my hierarchy to use that value in each child row of that hierarchy level. In the example below, I would want the number of rows under ...
- 7 years ago
cant test to guarantee , but you can try something like this
hier-count = CALCULATE( DISTINCTCOUNT( mytable[id] ) ,ALLEXCEPT(myTable , myTable[Grove]) )hope this is understandable :)
Nickgastaldi
7 years agoResolver I
cant test to guarantee , but you can try something like this
hier-count =
CALCULATE( DISTINCTCOUNT( mytable[id] )
,ALLEXCEPT(myTable ,
myTable[Grove])
)hope this is understandable :)
mjcuccia
7 years agoFrequent Visitor
Crushed it! Thanks Nickgastaldi! Answer was like this:
hier-count =
CALCULATE( DISTINCTCOUNT( mytable[OEM] )
,ALLEXCEPT(myTable ,
myTable[Site])
)