Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
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 | |||
| Item | Class | A new column | Not like this |
| GoldenApple | Fruit | 190 | 70 |
| RoseApple | Fruit | 190 | 30 |
| GreenApple | Fruit | 190 | 40 |
| RedApple | Fruit | 190 | 50 |
| GreenPepper | Veggie | 90 | 65 |
| BellPepper | Veggie | 90 | 10 |
| BalanaPepper | Veggie | 90 | 15 |
| … | … | ||
| Table2 | |||
| Date | Item | Sales | |
| 1-Jan | GoldenApple | 20 | |
| 15-Jan | GoldenApple | 50 | |
| 2-Jan | RoseApple | 30 | |
| 1-May | GreenApple | 40 | |
| 1-Jun | RedApple | 50 | |
| 1-Jan | GreenPepper | 60 | |
| 1-Mar | BellPepper | 10 | |
| 1-Jul | BalanaPepper | 15 | |
| 2-Jul | GreenPepper | 5 | |
| … | …. |
@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] ) )
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!
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] ) )
Can I take a look the "sales" measure in your visual ?
Thank you ERD!!!!
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!
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.