Forum Discussion

KristianVangen's avatar
KristianVangen
Frequent Visitor
4 years ago

Get value from other table if

Hi,

 

I'm new to PowerBI and my brain usually in the Excel realm. I have two datasets which shows (1) each response to a message and (2) when the invite was sent. My ultimate goal is to be able to see when we have most success inviting people to respond with hypotheses like "it's best to invite on fridays", "we should wait longer between our reminders to get the answers we want" and so on. My date format is "dd.mm.yyyy hh.mm.ss"

 

Table 1

ProjectCostumer IDResponse date/timeType of message
A101.01.2022 12:00Main Invite
A202.01.2022 13:00Main Invite
A35.01.2022 11:00Reminder 1
B410.02.2022 10:00Main Invite
B514.02.2022 11:30Main Invite

 

Table 2 - When invites/reminers are sent and number of people reached

ProjectDateTypeReachNumber of people responded within dates
A01.01.2022 15:00Main invite100 00062 000
A04.01.2022 12:00Reminder 138 00015 000
B08.01.2022 10:00Main invite50 00025 000

 

Within Excel I would probably have added a column to table 1 stating what kind of invite/reminder the costumer responded to (most likely). Since the reminder goes out to all those who didn't respond, I would have made a column in table 2 showing how many responded because of the invite/reminder. I cannot seem to get how to add these columns based on what project it is and if the date of response is between dates in table 2.

 

Not even sure if this is a good idea so please help me understand!

 

 

3 Replies

  • Hi, thank you for replying! Sorry for the late response. I made an example with similar data. I want to show, among other things, how many responses I have recieved with the different messages. Something like this:

     

     

    • KristianVangen's avatar
      KristianVangen
      Frequent Visitor

      To maybe simplify things a bit: What I need is how to create the relationship between the tables so that I can study when my respondents reply and to what message I sent out to them. Let's say I send out an email to 100 people, I get 60 responses within the two first days. I then send out a reminder to the remaining 40 people and 25 reply. I then close the possibility for replying on that particular topic. My result is in two tables:

      Type of emailNumber of people sent toDate
      Main1001. january 2022
      Reminder403. january 2022

       

      Respondent-IDDate reply
      11. january 2022
      21. january 2022
      32. january 2022
      ... 
      613. january 2022

       

      Every reply from 3rd of January is considered to be a reply to the reminder, not the first email (I know that is not certain, but that doesn't matter). So how do I combine these so that I can produce charts such as shown in the previous message?