Forum Discussion

vasathi's avatar
vasathi
Helper II
4 years ago
Solved

Hierarchy level total

Team

i have problem in allocations in Hierarchy reports in Matrix.

Lets say i have 3 level (Age Summary / Age Group / Category) in my report

The 3 Node calclation is Closing balance * Average% 
i need a calculations
        in 2nd Node is sum of 3 node
        in 1st Node is sum of 2 Node

i don't know clue how to proceed for this calculation

 



Download Samples 

 




  • vasathi please try:

    SUMX ( 
    	VALUES ( 'TableName'[Node 2] ), 
    	CALCULATE(
    		SUMX
    			VALUES ( 'TableName'[Node 3] )
    			[Closing balance * Average% (Measure)] 
    	)
    )

5 Replies

    • vasathi's avatar
      vasathi
      Helper II

      Dear 

      as per the calculation the 2nd level total showing correctly  and 1 level not summingup correctly


      Could you help me ....



      • SpartaBI's avatar
        SpartaBI
        Community Champion

        vasathi please try:

        SUMX ( 
        	VALUES ( 'TableName'[Node 2] ), 
        	CALCULATE(
        		SUMX
        			VALUES ( 'TableName'[Node 3] )
        			[Closing balance * Average% (Measure)] 
        	)
        )