Forum Discussion
sajith
6 years agoNew Member
How to display data from two tables (one table created using query editor)
Hi All, Kindly seeking your help to solve below issue. I need to display actual sales vs. target daily. Actual sales are extracted from the "Sales" table & another table for "Target" which i...
- 6 years ago
Hi,
Try this:
- Create a Calendar Table and build a relationship from the Date column of the 2 Tables to the Date column of the Calendar Table
- Create another Table with unique Sales reps and build a relationship from the Sales rep column of the 2 Tables to the Sales rep column of the new Table
- To your slicer visual, drag the Sales rep column to the slicer
- To the Table visual, drag Date from the Calendar Table
- Write these measures
Actual sales = SUM(Sales[Sales])
Target sales = SUM(Target[Sales])
Hope this helps.
Ashish_Mathur
6 years agoSuper User
Hi,
Try this:
- Create a Calendar Table and build a relationship from the Date column of the 2 Tables to the Date column of the Calendar Table
- Create another Table with unique Sales reps and build a relationship from the Sales rep column of the 2 Tables to the Sales rep column of the new Table
- To your slicer visual, drag the Sales rep column to the slicer
- To the Table visual, drag Date from the Calendar Table
- Write these measures
Actual sales = SUM(Sales[Sales])
Target sales = SUM(Target[Sales])
Hope this helps.