Forum Discussion
Help with Add columns across two tables
ADDCOLUMNS returns a table, so comes the error.
What do you plan to do further with the virtual table?
- changezshafiq3 years agoNew Member
Hi,
I need to use these calculations to determine Last Week sales, Last 4 Week sales, Last 13 Week sales by referencing the Week Ending Date and LW Date in the date table which looks like below:
so I want to create additional measure such as
LW Unit Sales = CALCULATE([POS UNITS SOLD],tbl_Date[Week Ending]=tbl_Date[X LW])
L4W Unit Sales = CALCULATE([POS UNITS SOLD,tbl_Date[Week Ending]>tbl_Date[X L4W],tbl_Date[Week Ending]<=tbl_Date[X LW])- tamerj13 years ago
Community Champion
Hi changezshafiq
What FreemanZ means is what are you using the ADDCOLUMNS table for? Why do you need to have both Units Sold and Dollars Sold in one virtual table?- changezshafiq3 years agoNew Member
I do not intend to create a virtual table, I just needed to insert new columns in sales table with different time measure shown below. I would then use these metrics and map them to Category, Geography, etc for my dashboard.