Different sources of sales data

Reed9050

New Member
Joined
Aug 14, 2019
Messages
8
Running into some issues creating a sales report in Power BI. My company has a 13 period year with 28 days per period. I have managed to figure this out with a custom calendar and can get current/prior year sales by period. The next issue I have is our multiple data sources. Our day to day sales data comes from our POS reporting database, but our AP team will publish final sales numbers at the end of every period. I currently have POS data in one query (by day) and our AP data in different query (by period). The challenge is that I need to do a yearly sales report that shows current and prior year sales. I would prefer to be able to show all years, so I need 2018 sales using our AP data source and a 2019 YTD compared to prior year sales that uses both AP & POS data. This will have to be a combo of AP data for periods that have closed and the POS data for the current period and same period last year. So I will need the POS data for the current period (2019 - 13) and the prior period (2018 - 13) while also having the AP data for 2018 yearly sales for 2018 - 13.

Here are my ideas:

1. Merge the two sales queries to show only AP data for closed periods and POS data for the current period and same period last year. I would need to remove 2018 yearly sales from this report, but I could add it to a different visualization.

2. Append the two sales queries and use a DAX function (some kind of case function, need to learn more about switch) to select POS data or AP data depending on the calendar table. Could maybe duplicate the calendar table and have a dateset for this year and last year so i can select POS & AP data for 2018 - 13 depending on if it is This year or Last year.

This is not enough information for a full solution but any advice or links to articles would be appreciated as I cannot find much on google and do not know enough about Power BI.
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.

Forum statistics

Threads
1,223,227
Messages
6,170,849
Members
452,361
Latest member
d3ad3y3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top