Forum Discussion
Measure using EARLIER??
Hello OwenAuger. Thanks for the reply. I ended up restructuring my data model to circumvent this need. But I am still curious. If Table A had rows with dates 1/1, 1/3, and 1/9 that are related to rows on the Transaction table with dates of 1/1 : $20, 1/2 : $30, 1/3 : $15, 1/4 : $25, 1/7 : $50, 1/8 : $35, and 1/11 : $80
then I want to be able to create the following view:
| Table A | Sum of Transactions |
| 1-Jan | $20 |
| 3-Jan | $65 |
| 9-Jan | $175 |
- robarivas8 years agoPost Patron
Hello Ashish_Mathur. No the Transactions table won't have true duplicates. Some rows may seem like duplicates in many cases because the field values are identical but that's just because the transactions table is not grouped at all. So even when one row looks the same as another row it actually really is a totally diferent transaction.
- Ashish_Mathur8 years agoSuper User
Hi,
Assuming there will never be any duplicates date entries in Table1, try this
- Build a relatioship from the Date column in Table2 to the Date column in Table1
- In the visual, drag the Date from the Date column from Table1
- Write the following measure
=SUM(Table2[Amount])
Hope this helps.