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,
I am having trouble aggregating a calculated column correctly.
My calculated column is below. My goal is for it to add all the Amounts for each Catalog # for the year 2022. It is actually working, however, when I select a slicer that is on the report for Division and/or Catalog #, the column still aggregates the total for all Divisions. This is what I have but I know it is incorrect. I am hoping someone can help. Thank you so much!
| Year | Division | Catalog # | Invoice Qty | Invoice Amt |
| 2022 | ABH | 20384 | 1 | 6 |
| 2022 | ABH | 30461 | 4 | 8 |
| 2022 | UE | 20384 | 2 | 12 |
| 2023 | ABH | 20384 | 6 | 36 |
| 2023 | ABH | 30461 | 8 | 16 |
| 2023 | UE | 20384 | 3 | 18 |
Solved! Go to Solution.
hi @Tmk123 ,
the suggested code is for measure.
Calculated columns are not supposed to respond to the visuals, like the slicer, that you mentioned in the original post.
Hi @Tmk123 ,
Not sure if i fully get you.
try to plot a slicer with division column and table visual with catelog column and a measure like:
Amt 2022 =
CALCULATE(
SUM(data[Invoice Amt]),
data[Year]=2022
)
it worked like:
Thanks, that is what I am trying to do, however, received a circular dependency error.
A circular dependency was detected: _Sum Sales By Div[_Amt % Change], _Sum Sales By Div[_2022 Invoice Amt], _Sum Sales By Div[_Amt % Change].
This is the updated column, based on your suggestion:
I had another calculated column calculating the % Change. I cannot use measures in my table because I have a slicer controlling the % Change. Is there a way to rewrite this to fix the circular dependency?
hi @Tmk123 ,
the suggested code is for measure.
Calculated columns are not supposed to respond to the visuals, like the slicer, that you mentioned in the original post.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 5 | |
| 5 | |
| 4 | |
| 4 | |
| 3 |
| User | Count |
|---|---|
| 24 | |
| 21 | |
| 13 | |
| 10 | |
| 10 |