Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello Community,
I am having some issues with a particular summarization I am trying to do. I am trying to create a summarized table for the measure $ share change and am having some difficulties with the summarization that I am not sure how to address. If you see below, you'll see that the "sum of $ share change" column is all 0.00% when it should match the "retail $ share change" figures next to it. You can also see below how I currently created the summarized table. Any assistance here would be very much appreciated. Thank you so much!
Solved! Go to Solution.
Hi @mbmcdonald2
It sounds like your summarized table isn't correctly calculating the measure $ Share Change in the "Sum of $ Share Change" column. This could be due to the way the DAX code is written in the summarized table, or it might be caused by a missing or misapplied filter context. Let’s work through a few troubleshooting steps and adjust the DAX so that the "Sum of $ Share Change" column properly reflects the Retail $ Share Change values.
First, double-check the DAX expression for your $ Share Change measure to ensure that it isn’t inadvertently zeroing out when calculated in a different filter context. A typical $ Share Change measure might look like this:
DAX
$ Share Change =
[Current Year Retail $] - [Previous Year Retail $]
Or, if calculated as a percentage:
$ Share Change =
DIVIDE([Current Year Retail $] - [Previous Year Retail $], [Previous Year Retail $], 0)
Make sure the measure correctly calculates $ Share Change at the level you need, without being influenced by other slicers or filters. Once verified, you can move to create the summarized table.
Use the SUMMARIZE function to build your summarized table and ensure the correct calculation of the $ Share Change measure within this context. Here’s how you might adjust the DAX to ensure that the "Sum of $ Share Change" correctly matches the "Retail $ Share Change" values.
Assuming that you are summarizing by categories like Product and Region, here’s an example DAX formula:
DAX
Summarized Table =
SUMMARIZE(
'SalesData',
'SalesData'[Product],
'SalesData'[Region],
"Retail $ Share Change", [$ Share Change], -- This pulls in the measure
"Sum of $ Share Change",
CALCULATE(
[$ Share Change],
ALLEXCEPT('SalesData', 'SalesData'[Product], 'SalesData'[Region])
)
)
If you still see zero values, check if any filters or slicers are affecting the table visualization or the summarized table’s calculation. Filters on dates, regions, or other factors can sometimes result in $ Share Change returning 0 if they unintentionally filter out necessary data.
If SUMMARIZE continues to give incorrect results, you can try using ADDCOLUMNS with SUMMARIZE for more control:
Summarized Table =
ADDCOLUMNS(
SUMMARIZE(
'SalesData',
'SalesData'[Product],
'SalesData'[Region]
),
"Retail $ Share Change", [$ Share Change],
"Sum of $ Share Change",
CALCULATE(
[$ Share Change],
ALLEXCEPT('SalesData', 'SalesData'[Product], 'SalesData'[Region])
)
)
This approach also groups by Product and Region and calculates both $ Share Change columns within that grouping.
These steps should align the "Sum of $ Share Change" with the "Retail $ Share Change" column values. Let me know if you need further customization!
Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂
Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
Hi @mbmcdonald2 ,
Based on the description, try using the following DAX formula.
KO $ Share Change Rank =
ADDCOLUMNS(
SUMMARIZE(
'Nielsen (excl. dist)',
'Nielsen (excl. dist)'[Manufacturer],
'Nielsen (excl. dist)'[Sub-Category],
'Nielsen (excl. dist)'[Zone],
'Nielsen (excl. dist)'[Channel]
),
"KO $ Share Change", [KO Retail $ Share Change],
"Sum of KO $ Share Change", SUMX('Nielsen (excl. dist)', [KO Retail $ Share Change])
)
If the calculation is still 0, please provide the data from the original table.
Best Regards,
Wisdom Wu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @mbmcdonald2
It sounds like your summarized table isn't correctly calculating the measure $ Share Change in the "Sum of $ Share Change" column. This could be due to the way the DAX code is written in the summarized table, or it might be caused by a missing or misapplied filter context. Let’s work through a few troubleshooting steps and adjust the DAX so that the "Sum of $ Share Change" column properly reflects the Retail $ Share Change values.
First, double-check the DAX expression for your $ Share Change measure to ensure that it isn’t inadvertently zeroing out when calculated in a different filter context. A typical $ Share Change measure might look like this:
DAX
$ Share Change =
[Current Year Retail $] - [Previous Year Retail $]
Or, if calculated as a percentage:
$ Share Change =
DIVIDE([Current Year Retail $] - [Previous Year Retail $], [Previous Year Retail $], 0)
Make sure the measure correctly calculates $ Share Change at the level you need, without being influenced by other slicers or filters. Once verified, you can move to create the summarized table.
Use the SUMMARIZE function to build your summarized table and ensure the correct calculation of the $ Share Change measure within this context. Here’s how you might adjust the DAX to ensure that the "Sum of $ Share Change" correctly matches the "Retail $ Share Change" values.
Assuming that you are summarizing by categories like Product and Region, here’s an example DAX formula:
DAX
Summarized Table =
SUMMARIZE(
'SalesData',
'SalesData'[Product],
'SalesData'[Region],
"Retail $ Share Change", [$ Share Change], -- This pulls in the measure
"Sum of $ Share Change",
CALCULATE(
[$ Share Change],
ALLEXCEPT('SalesData', 'SalesData'[Product], 'SalesData'[Region])
)
)
If you still see zero values, check if any filters or slicers are affecting the table visualization or the summarized table’s calculation. Filters on dates, regions, or other factors can sometimes result in $ Share Change returning 0 if they unintentionally filter out necessary data.
If SUMMARIZE continues to give incorrect results, you can try using ADDCOLUMNS with SUMMARIZE for more control:
Summarized Table =
ADDCOLUMNS(
SUMMARIZE(
'SalesData',
'SalesData'[Product],
'SalesData'[Region]
),
"Retail $ Share Change", [$ Share Change],
"Sum of $ Share Change",
CALCULATE(
[$ Share Change],
ALLEXCEPT('SalesData', 'SalesData'[Product], 'SalesData'[Region])
)
)
This approach also groups by Product and Region and calculates both $ Share Change columns within that grouping.
These steps should align the "Sum of $ Share Change" with the "Retail $ Share Change" column values. Let me know if you need further customization!
Did I answer your question? Mark my post as a solution, this will help others!
If my response(s) assisted you in any way, don't forget to drop me a "Kudos" 🙂
Kind Regards,
Poojara
Data Analyst | MSBI Developer | Power BI Consultant
Hi Poojara!
Thank you so much for the help here. It still looks like I'm getting all zero values with the approaches mentioned above. Please see my summarization here:
Thank you so much in advance for all of your help!
Best,
Maggie
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
7 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |