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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

to make aggregation only go with higher dimension level

Hi Masters,

 

 I want to add a new column in table 1 - the sales aggregation is according to Class column  not to be drill down to item column. How I can achieve it?

 

 

Table1   
ItemClassA new columnNot like this
GoldenAppleFruit19070
RoseAppleFruit19030
GreenAppleFruit19040
RedAppleFruit19050
GreenPepperVeggie9065
BellPepperVeggie9010
BalanaPepperVeggie9015
  
    
Table2   
DateItemSales 
1-JanGoldenApple20 
15-JanGoldenApple50 
2-JanRoseApple30 
1-MayGreenApple40 
1-JunRedApple50 
1-JanGreenPepper60 
1-MarBellPepper10 
1-JulBalanaPepper15 
2-JulGreenPepper5 
….  
4 REPLIES 4
ERD
Community Champion
Community Champion

@Anonymous , do you need a measure for a table visual or a calculated column?

If it's a measure: 

 

measure_ =
CALCULATE ( SUM ( Table2[Sales] ), ALL ( Table1[Item] ) )

 

ERD_0-1693585295323.png

If it's a calculated column:

Column = CALCULATE(SUM(Table2[Sales]), ALLEXCEPT(table1, Table1[class]))

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Anonymous
Not applicable

I have a question: why it is not 

Sales Class = calculate(sum(Table2[Sales]), all(Table1[Class])) ?
But 
CALCULATE ( SUM ( Table2[Sales] ), ALL ( Table1[Item] ) )

 

Anonymous
Not applicable

Can I take a look the "sales" measure in your visual ?

Thank you ERD!!!!

ERD
Community Champion
Community Champion

I don't use it in your formulas, it's just for the visualization. 

sales = SUM(Table2[Sales])

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your Kudos.

Check out my latest demo report in the data story gallery.

Stand with Ukraine!


Here are official ways you can support Ukraine financially (accounts with multiple currencies):
1) Support the Armed Forces of Ukraine: https://bank.gov.ua/ua/about/support-the-armed-forces
2) Come Back Alive foundation: https://www.comebackalive.in.ua/

Thank you!

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 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