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

Shape the future of the Fabric Community! Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions. Take survey.

Reply
MS2121
Regular Visitor

Splitting quarterly sales

Hi all

 

I have a sql Server Database with different tables including item codes, item groups and Sales. 

 

Some articles are being invoiced at the beginning of a quarter in advance.  The sales amounts of these articles in January, April, July and October must be divided by 3 and distributed To the next 2 months.

 

For example when there is a revenue of 300 in January I would like to See 100 in January, February and March.

 

I found a way to do this in Power Query Editor but due to many steps with combined and merged tables it became very slow (45 minutes minimum to see the Data in Power Query Editor).

 

Is there a DAX expression that distributes the numbers like that in a measure?

 

Thank you very much 😊

 

Best Regards

 

Michael 

 

 

1 ACCEPTED SOLUTION
Jihwan_Kim
Super User
Super User

Hi, @MS2121 

I have created a sample data by myself to demonstrate your question.

Please kindly correct me if I wrongly understood.

I believe there are some differentiation codes between normal sales and early sales.

I added normal sales as usual.

I added early sales as per your inquiries.

Please kindly have a look at the below link, which is the sample pbix file.

 

I hope it helps.

 

https://www.dropbox.com/s/sg1x4ilbxvaim0u/ms2121%202021%200326.pbix?dl=0 

 


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

Appreciate your Kudos!!

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

View solution in original post

2 REPLIES 2
Jihwan_Kim
Super User
Super User

Hi, @MS2121 

I have created a sample data by myself to demonstrate your question.

Please kindly correct me if I wrongly understood.

I believe there are some differentiation codes between normal sales and early sales.

I added normal sales as usual.

I added early sales as per your inquiries.

Please kindly have a look at the below link, which is the sample pbix file.

 

I hope it helps.

 

https://www.dropbox.com/s/sg1x4ilbxvaim0u/ms2121%202021%200326.pbix?dl=0 

 


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

Appreciate your Kudos!!

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Visit my LinkedIn page by clicking here.


Schedule a meeting with me to discuss further by clicking here.

amitchandak
Super User
Super User

@MS2121 , I have few articles to deal with , they are for month, year and Range. But should be able use those to get one for quarter

How to divide/distribute values between start date or end date or count days across months/days: https://community.powerbi.com/t5/Community-Blog/How-to-divide-distribute-values-between-start-date-o...

 

Distributing/Allocating the Yearly Target(Convert to Daily Target): Measure ( Daily/YTD): Magic of CLOSINGBALANCEYEAR With TOTALYTD/DATESYTD: https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Yearly-Target-C...

 

Distributing/Allocating the Monthly Target(Convert to Daily Target): Measure ( Daily/MTD): https://community.powerbi.com/t5/Community-Blog/Power-BI-Distributing-Allocating-the-Monthly-Target-...

 

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

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

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.