Forum Discussion
Create report from from two tables
I want to create a report that will show gross sales (budget) vs. actual sales. For some reason, the report generated repeats actual sales data every month. Here's my dummy sample report. I'm also new to Power BI.
- Anonymous5 years ago
Ice1341 Seems like there is no relationshipt built between the two tables.
And looking at the samlple data, Cust Code from Sales Budget should be joined with JF Code in Sales Invoice data which should resolve the issue.
- Anonymous5 years ago
Create a calendar Table and join dates from both table
- Anonymous5 years ago
Yes, build relationships of both the tables from Calendar table and in your chart you can just used the date fied from Calendar table.
7 Replies
- AnonymousNot applicable
Ice1341 Seems like there is no relationshipt built between the two tables.
And looking at the samlple data, Cust Code from Sales Budget should be joined with JF Code in Sales Invoice data which should resolve the issue.
- Ice1341Helper I
Yes, I created a relationship based on the customer code, but I want to view data by month. If I use the date in the sales budget table - gross sales appear correctly by month, but sales orders repeats every month. How can I combine dates from each table to use in the report? See screenshot, Gross Sales Correct, but actual sales repeat every month when it should just appear for Jan Sales.
- AnonymousNot applicable
Create a calendar Table and join dates from both table
- AnonymousNot applicable
Yes, build relationships of both the tables from Calendar table and in your chart you can just used the date fied from Calendar table.
- Ice1341Helper I
I can only create a relationship with sales budget dates, I get the error: the sales order table can't create a direct active relationship...I have to deactivate the relationship between the sales budget and the date table.
- Ice1341Helper I
I found a workaround that filtered dates into my report correctly. Thanks everyone for your help!