Forum Discussion

Ice1341's avatar
Ice1341
Helper I
5 years ago
Solved

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. 

 

 

  • Anonymous's avatar
    Anonymous
    5 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.

     

  • Anonymous's avatar
    Anonymous
    5 years ago

    Create a calendar Table and join dates from both table 

     

  • Anonymous's avatar
    Anonymous
    5 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

  • Anonymous's avatar
    Anonymous
    Not 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.

     

    • Ice1341's avatar
      Ice1341
      Helper 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.

      • Anonymous's avatar
        Anonymous
        Not applicable

        Create a calendar Table and join dates from both table 

         

  • Anonymous's avatar
    Anonymous
    Not 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.

    • Ice1341's avatar
      Ice1341
      Helper 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. 

  • I found a workaround that filtered dates into my report correctly. Thanks everyone for your help!