Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
thx1137
Helper I
Helper I

% of Sales Contribution by Month

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?

1 ACCEPTED SOLUTION
bhanu_gautam
Super User
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
)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

4 REPLIES 4
bhanu_gautam
Super User
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
)




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





thx1137
Helper I
Helper I

...and I want to show several fiscal years worth of data in this matrix visual.

thx1137
Helper I
Helper I

@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...

bhanu_gautam
Super User
Super User

@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




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.