Forum Discussion
How to connect Target and Sales
Hi anyone can help me.
I have 2 table and dont know how to connect it at power BI.
I want have summary target and sales. When i click the slicer of month and type, i want all of it change / update link with slicer.
But it can't. Thank you for your advice.
Table1
| Date | Customer | Type | SalesName | Sales |
| 9/1/2023 | A | TRONTON A | VICTOR | 5,000 |
9/1/2023 | B | TRONTON B | MAX | 7,000 |
| 9/1/2023 | C | TRONTON A | MAX | 8,000 |
| 9/2/2023 | B | TRAILER A | MAX | 12,000 |
| 9/3/2023 | B | TRAILER B | MAX | 10,000 |
| 10/5/2023 | A | TRONTON A | VICTOR | 8,000 |
| 10/6/2023 | C | TRAILER A | MAX | 15,000 |
| 10/7/2023 | B | TRONTON A | MAX | 5,000 |
| 10/7/2023 | A | TRONTON B | VICTOR | 7,000 |
Table2 :
| Type | Month | Target |
| TRONTON A | September 2023 | 2,425,500 |
| TRONTON B | September 2023 | 546,000 |
| TRONTON C | September 2023 | 459,900 |
| TRAILER A | September 2023 | 770,770 |
| TRAILER B | September 2023 | 435,820 |
| TRONTON A | November 2023 | 1,975,050 |
| TRONTON B | November 2023 | 491,400 |
| TRONTON C | November 2023 | 413,910 |
| TRAILER A | November 2023 | 586,971 |
| TRAILER B | November 2023 | 392,238 |
2 Replies
- Dhairya
Solution Supplier
Hey merry_jane
You have to first create a Date Table and dimension table for type.
then you can configure the relationship between all your tables and plot your expected data.
DAX to create Date Table:Date = CALENDARAUTO()
Create the Following calculated column in the Date tableMonth = FORMAT('Date'[Date],"MMMM" )MonthNumber = FORMAT('Date'[Date], "mm")
Configure the relationship as shown in the below image
Now plot Type and Month from the dimension table as belowNow you will be able to filter data with month and type
If this helps you then please kudo and mark my solution as accepted so that others can find it quickly while facing similar issue. Thank You!- merry_janeRegular Visitor
Hi @Dhairya , thanks for your help.
Does the date table have no data content in it?