Forum Discussion
Calculate stopped filtering - referencing another table
- 6 years ago
Thanks - your question triggered me to remember the piece I was missing - just forgot to map the relationship for the new table. My new table has all the unique invoice numbers so that's my 1 and the data source is my many. Working as intended again.
The structure is not clear to me yet. Are these two tables joined with each other and invoice no is unique in virtual table
Then you could have like this
Virtual Promotion = CALCULATE(SUM(udv_SalesItemsByLine[Values Sales Amt]), Values('Virtual Table'[Invoice Number]))
Virtual Promotion = sumx(summarize('Virtual Table','Virtual Table'[Invoice Number],"_sum",SUM(udv_SalesItemsByLine[Values Sales Amt])),[_sum])
Else you need a common dimension. If you are creating a table variable in a measure then there is a different way to deal it