This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello,
Trying to come up with a DAX measure to show the % of sales contribution by month in the context of our fiscal year, shown in a matrix that shows months across the columns.
Seems like it should be easy to do, however after multiple attempts, still can't get there. I can get to % contribution over all time, but not % contribution in the context of the fiscal year.
Any ideas?
Solved! Go to Solution.
Try using this method
TotalSalesPerMonth =
CALCULATE(
SUM(Sales[SalesAmount]),
ALLEXCEPT(Sales, Dates[Month], Dates[FiscalYear])
)
TotalSalesFY =
CALCULATE(
SUM(Sales[SalesAmount]),
ALLEXCEPT(Sales, Dates[FiscalYear])
)
SalesContributionPercentage =
DIVIDE(
[TotalSalesPerMonth],
[TotalSalesFY],
0
)
Proud to be a Super User! |
|
Try using this method
TotalSalesPerMonth =
CALCULATE(
SUM(Sales[SalesAmount]),
ALLEXCEPT(Sales, Dates[Month], Dates[FiscalYear])
)
TotalSalesFY =
CALCULATE(
SUM(Sales[SalesAmount]),
ALLEXCEPT(Sales, Dates[FiscalYear])
)
SalesContributionPercentage =
DIVIDE(
[TotalSalesPerMonth],
[TotalSalesFY],
0
)
Proud to be a Super User! |
|
...and I want to show several fiscal years worth of data in this matrix visual.
@bhanu_gautam - thanks, however this is giving me the % contribution of the month in the context of all time...I am trying to get to the % contribution of the month in the context of the fiscal year...
@thx1137 , Try using below method
TotalSalesPerMonth =
CALCULATE(
SUM(Sales[SalesAmount]),
ALLEXCEPT(Sales, Dates[Month])
)
TotalSalesAllTime =
CALCULATE(
SUM(Sales[SalesAmount]),
ALL(Sales)
)
SalesContributionPercentage =
DIVIDE(
[TotalSalesPerMonth],
[TotalSalesAllTime],
0
)
Please accept as solution and give kudos if it helps
Proud to be a Super User! |
|
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 36 | |
| 28 | |
| 28 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 65 | |
| 35 | |
| 33 | |
| 25 | |
| 24 |