Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Krunalbpatel
Helper III
Helper III

Display different value on each drill down level

Hi,

 

I want to display different value on each drill down level. It means that I want to display sum value on First level and on second level I want to display the average value. Is It possible to display this in Power BI? If it is then How can I do this? 

 

Please Help me!

Thanks

1 ACCEPTED SOLUTION
konstantinos
Memorable Member
Memorable Member

@Krunalbpatel  You can try something like this 

 

This is the table I create 

FirstLevel	DrillLevel	Amount
A	C	5
A	D	5
A	C	5
B	F	5
B	F	5
B	E	5

and the formula is 

 

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

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

 

Result 

 

1.PNG

 

 

Konstantinos Ioannou

View solution in original post

3 REPLIES 3
konstantinos
Memorable Member
Memorable Member

@Krunalbpatel  You can try something like this 

 

This is the table I create 

FirstLevel	DrillLevel	Amount
A	C	5
A	D	5
A	C	5
B	F	5
B	F	5
B	E	5

and the formula is 

 

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

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

 

Result 

 

1.PNG

 

 

Konstantinos Ioannou

@konstantinos Thank you for replying. I got my solution

ankitpatira
Community Champion
Community Champion

@Krunalbpatel what you can do is display sum and average side by side and as you drill down you see them both.

 

Capture.PNG

 

 

 

 

 

 

 

 

 

 

 

 

 

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Solution Authors