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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
dylankaiser4
Frequent Visitor

DAX Formula: Distribute Sales from one Product Line into the other Product lines based on YTD %

Hello, 

 

I have a request to reallocate values from one Product Line into the other Product Lines based on the YTD Revenue % split of the Product Lines. 

 

Example I pulled together in excel to visually represent this:

dylankaiser4_0-1719580640299.png

 

I am wondering how I should build out this use case. Is DAX the right approach or should a pre-process within PowerQuery?

 

Any assitance is greatly appreciated!

1 ACCEPTED SOLUTION
DataNinja777
Super User
Super User

Hi @dylankaiser4 ,

 

You can use dax to produce your required output, and it is simple to do so like in Excel.  One reservation regarding the YTD Revenue allocation is that, you have to be careful when you want to see the allocated sales by month granularity.  In my opinion, it appears simpler to do so by month by month distribution and add across months for YTD rather than having to subtract from current month YTD from previous month YTD to get the current month monthly revenue.  However, for this example, I did as you requested, and I attach an example pbix file below.

DataNinja777_0-1719644763742.png

 

View solution in original post

1 REPLY 1
DataNinja777
Super User
Super User

Hi @dylankaiser4 ,

 

You can use dax to produce your required output, and it is simple to do so like in Excel.  One reservation regarding the YTD Revenue allocation is that, you have to be careful when you want to see the allocated sales by month granularity.  In my opinion, it appears simpler to do so by month by month distribution and add across months for YTD rather than having to subtract from current month YTD from previous month YTD to get the current month monthly revenue.  However, for this example, I did as you requested, and I attach an example pbix file below.

DataNinja777_0-1719644763742.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.