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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Mepoo127
Frequent Visitor

Actual vs Budget weekly sales

Hi,

 

I am doing report to compare weekly actual sales and budget. Actual sales data come from Dynamics 365 and weekly budget comes from an excel file.

 

 However, the tricky part is sales come from different teams and budget is set across the team as well. So I have to compare weekly sales by Team.

 

I need to combine these two tables into one with the same weekend and Business Unit so that I can have a chart to compare the actual and target.

 

Could you please help me with this?

 

Thank you very much!

 

Sales.png

 

3 ACCEPTED SOLUTIONS
v-jiascu-msft
Employee
Employee

Hi @Mepoo127.

 

Maybe you just need a date table like this:

Calendar =
ADDCOLUMNS (
    CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2017, 12, 31 ) ),
    "Year", YEAR ( [Date] ),
    "Month", MONTH ( [Date] ),
    "Week", WEEKNUM ( [Date], 2 )
)

Then you establish relationships with budget and sales. The report could be like this:

'Calendar'[Week]   Sales   Budget  Compare

Actual_vs_Budget_weekly_sales

 

If you want more detailed help, please provide a dummy sample.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Hi Dale,

 

Again, thank you very much for your advice and suggestion. I successfully did it.

 

I created 2 Week Ending tables extracted from Actual Sales and Target Sales, as well as 2 Business Unit tables from those two Sales tables. Then I managed the relationship among those tables and it's done 🙂

 

Below is the screenshot of the relationship diagram.

 

Relationship Diagram.PNG

 

Again, thank you very much Dale!!

 

View solution in original post

My pleasure. Why using two weekend tables? One more suggestion here.

Weekend =
FILTER (
    DISTINCT (
        UNION ( VALUES ( 'Actual Sales'[weekend] ), VALUES ( 'Target Sales'[weekend] ) )
    ),
    ISBLANK ( [weekend] ) = FALSE ()
)

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-jiascu-msft
Employee
Employee

Hi @Mepoo127.

 

Maybe you just need a date table like this:

Calendar =
ADDCOLUMNS (
    CALENDAR ( DATE ( 2017, 1, 1 ), DATE ( 2017, 12, 31 ) ),
    "Year", YEAR ( [Date] ),
    "Month", MONTH ( [Date] ),
    "Week", WEEKNUM ( [Date], 2 )
)

Then you establish relationships with budget and sales. The report could be like this:

'Calendar'[Week]   Sales   Budget  Compare

Actual_vs_Budget_weekly_sales

 

If you want more detailed help, please provide a dummy sample.

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi Dale,

 

Again, thank you very much for your advice and suggestion. I successfully did it.

 

I created 2 Week Ending tables extracted from Actual Sales and Target Sales, as well as 2 Business Unit tables from those two Sales tables. Then I managed the relationship among those tables and it's done 🙂

 

Below is the screenshot of the relationship diagram.

 

Relationship Diagram.PNG

 

Again, thank you very much Dale!!

 

My pleasure. Why using two weekend tables? One more suggestion here.

Weekend =
FILTER (
    DISTINCT (
        UNION ( VALUES ( 'Actual Sales'[weekend] ), VALUES ( 'Target Sales'[weekend] ) )
    ),
    ISBLANK ( [weekend] ) = FALSE ()
)

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Your suggestion works perfectly Dale 🙂  Can't be any happier!!!

 

Thank you very much for your help with this!

Hi Dale,

 

One Weekend table is from the Actual sales, and the other is the Weekend from Target Sales. Then I connect them together.

 

I will try your suggestion with the Union formula.

 

Thank you very much!

 

Best Regards,

Mimi

Hi Dale,

 

Thank you so very much for your reply.

I will try what you suggest and get back to you if I have any other problems.

 

Kind Regards,

Mimi

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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