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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
JHF
Advocate I
Advocate I

Repeating rows on drill down in table

Hi

I am trying to calculate the avr country price and compare it with the avr BU price when I drill down in a table I get all the countries shown when I apply a filter on BU. (country is managed in a separate table.

Attached is the formula I used and a copy of the result table.

 

What is it that I am not considering?

 

formula.PNGtable.PNG

1 ACCEPTED SOLUTION
v-qiuyu-msft
Community Support
Community Support

Hi @JHF,

 

I notice that you use the ALLEXCEPT() in the measure. As this function will remove all context filters in the table except filters that have been applied to the specified columns. The measure will always return [AvrPrice 2015_BU Adj] values group by  [BU Key], ignore which level drill down or drill up. Please try to modify the measure to below, the result can be evaluated on each drill down level. 

 

Measure= CALCULATE([AvrPrice 2015_BU Adj], FILTER(Data,'Data'[BU Key]<=MAX('Data'[BU Key])))

 

Best Regards,
Qiuyun Yu

 

 

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-qiuyu-msft
Community Support
Community Support

Hi @JHF,

 

I notice that you use the ALLEXCEPT() in the measure. As this function will remove all context filters in the table except filters that have been applied to the specified columns. The measure will always return [AvrPrice 2015_BU Adj] values group by  [BU Key], ignore which level drill down or drill up. Please try to modify the measure to below, the result can be evaluated on each drill down level. 

 

Measure= CALCULATE([AvrPrice 2015_BU Adj], FILTER(Data,'Data'[BU Key]<=MAX('Data'[BU Key])))

 

Best Regards,
Qiuyun Yu

 

 

 

Community Support Team _ Qiuyun Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thanks...it worked when I made a minor tweek, adding the allselected to the formula.

ALCULATE([AvrPrice 2015_BU Adj];FILTER(ALLSELECTED(Data);Data[BU Key]=MAX(Data[BU Key])))

 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors