Forum Discussion
DIACHROMA
4 years agoHelper II
Calculated Column from another fact table without relationship
Hello dear colleagues, I'm trying to create a calculated column in the following context: I have an "Event Attendees" table in which I have a row for each attendee of promotional events. I need...
- 4 years ago
Hi DIACHROMA,
You may try this Measure.
Sales D+30? = CALCULATE ( COUNT ( Sales[OrderDate] ), //Count Order in the Range TREATAS ( VALUES ( 'Events Attendees'[Attendee] ), Sales[Customer] ), FILTER ( 'Calendar', 'Calendar'[Dates] >= MINX ( 'Events Attendees', 'Events Attendees'[EVENT DATE] ) && 'Calendar'[Dates] <= MINX ( 'Events Attendees', 'Events Attendees'[DAYS +30] ) ) )Then, the result will look like this.
Also, attached the pbix file as reference.
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
CNENFRNL
4 years agoCommunity Champion
For fun only, a showcase of powerful Excel worksheet formula,
GuillaumeJ
4 years agoRegular Visitor
Hello,
The key for me is to build an Event Table thanks to your attendee table.
Then, you can create a calculated Column to do the job.
https://drive.google.com/file/d/19U2E8QPUBG9x_XzExM2lYHcpB4y-vPIf/view?usp=sharing
Regards