Forum Discussion
Creating a calculated column from another table based on date criteria
- 7 years ago
Anonymous attached with this reply.
AnonymousI have solution ready, let me know where you want to send me. atleast this will get you started. Although on larger schema I will improve/make changes to data model.
Thank you so much parry2k - if you're not able to add it here (feel free if you prefer to add for anyone else to see), I have google drive or one-drive, not sure what works best for you to share?
- parry2k7 years agoSuper User
Anonymous attached with this reply.
- Anonymous7 years agoNot applicable
Hi parry2k !
Thank you again, do you mind uploading to this one-drive folder please?
https://1drv.ms/f/s!AuheBS0uRNVlmDiCBAHEaJ7Yt-LV
Thanks again!
- Anonymous7 years agoNot applicable
parry2k Thank you so much!
- Anonymous7 years agoNot applicable
parry2k - sorry for late response, just a follow up to better understand campaign sales in the mailers table.
How exactly does this formula below work?
It gives me the right answer, but having trouble following the logic.
Campaing Sales = CALCULATE( COUNTROWS( Sales ), TREATAS( VALUES( Mailers[Campaign] ), Sales[Campaign] ) ) - Anonymous7 years agoNot applicable
I did a bit more research, and It would be a ton of help if I could understand the logic below, but also I'm wondering why we didn't use a summarize along with customer id so we join on both customer id and mailers?
It seems to be doing everything correctly, but I saw others using a summarize function.
Campaing Sales = CALCULATE( COUNTROWS( Sales ), TREATAS( VALUES( Mailers[Campaign] ), Sales[Campaign] ) )