Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hey everyone,
I am a first time poster here, and I have searched for what I am looking for, but haven't been able to find a solution. However, if it has been solved before, please point me in the right direction.
I am looking for a way to calculate the sales contribution in our year-over-year sales growth by state. I have a sample table below where I have the state, current year's sales, prior year's sales. I have a measure calculating the $ and % growth between the two, but I am not sure how to get to the others...where it would be dynamic based on my filtering within the page.
% of Growth = Sales Growth $ / Total Sales Growth $
Contribution % = % of Growth * Total Sales Growth %
So, in the example table, you can see the sales dollars, and year over year by state, but I want to be able to show in relative terms, what each state contributed to the overall growth (far right columnn). So, in the example, both UT and VA had the most drag on sales for the time period, which CO contributed the most (sum of all of the contribution % = total sales growth %).
State | Net Sales CY | Net Sales PY | Sales Growth $ | Sales Growth % | % of Growth | Contribution % |
AZ | $ 65,194 | $ 63,999 | $ 1,195 | 1.9% | (14.6%) | 0.3% |
CA | $ 62,723 | $ 55,747 | $ 6,976 | 12.5% | (84.9%) | 1.8% |
CO | $ 65,715 | $ 52,052 | $ 13,663 | 26.2% | (166.4%) | 3.6% |
NV | $ 62,008 | $ 57,299 | $ 4,709 | 8.2% | (57.3%) | 1.2% |
UT | $ 58,696 | $ 75,522 | $ (16,826) | (22.3%) | 204.9% | (4.4%) |
VA | $ 56,557 | $ 74,486 | $ (17,929) | (24.1%) | 218.3% | (4.7%) |
Total | $ 370,893 | $ 379,105 | $ (8,212) | (2.2%) | 100.0% | (2.2%) |
Any help is appreciated. Thanks.
Hello
The exercise has helped me a lot, thank you!
but can you please explain to me what is the difference between % Growth and % Contribution
@Claymation , Try like
% of Growth = divide([Sales Growth $], calculate([Sales Growth $] , allselected(Table))
or
% of Growth = divide([Sales Growth $], calculate([Sales Growth $] , all(Table))
Here is what I have as the two steps to get me there...however, when I compare to the solution that I have in Excel, it appears to be off.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
At the end of the day, I want to be able to chart out, or show in a trend the "Contribution %" column. This allows me to see the overall sales growth for the company of (2.2%), but also allows me to isolate the biggest movers when digging deeper. So, a particular state may have had a large growth %, but the overall dollars are a small part of the total, so it helps isolate where to dig deeper when analyzing.
Hopefully that makes sense.
Copying DAX from this post? Click here for a hack to quickly replace it with your own table names
Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C
I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com
User | Count |
---|---|
102 | |
88 | |
78 | |
71 | |
69 |
User | Count |
---|---|
113 | |
99 | |
97 | |
72 | |
68 |