Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 217117

Drill down into different data

$
0
0

Hello, 

 

Im trying not only switch the axis when drilling down, but also the values. 

 

i.e. start with:

Axis: Projects     Value: Total expenses

 

To

 

Axis: Employees     Value: Expense A,  Expense B, etc. 

 

I have found this:

 

ChangeInDrillDown = 
     VAR  AverageCalc = AVERAGE(TableName[Amount])
     VAR  SumCalc   = SUM(TableName[Amount])

RETURN
IF(ISFILTERED(TableName[DrillLevel]);SumCalc;AverageCalc)

 

However i cannot find the ChangeInDrillDown on the microsoft website and it gives an error in DAX when creating a measure. If it is correct, where do i input the code and how do i get the drill down button to respond to it?

 

Or is there another way to achieve the above?

 

Kind regards, 

Ad


Viewing all articles
Browse latest Browse all 217117

Trending Articles



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