Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Ilh
New Member

Column using two tables

Hello all, 

 

I am facing an issue with my measure, and i hope you can help me.

I am trying to do a column using two tables named "Contacts" & " Email Results"

My column is Brand engagement and it's categorizing the email results per contact using how many email is opened

less than 20% 

Between 20-50%

Between 50-70% 

More than 70% 

Brand Engagement = if('Email Results'[EPR]<0.2,"Not Interested <20%",
If('Email Results'[EPR]=0.2 ||'Email Results'[EPR]>0.2 && 'Email Results'[EPR]<0.5,"Somewhat (between 20% and 50%)",
If(
('Email Results'[EPR]=0.5 ||'Email Results'[EPR]>0.5) && 'Email Results'[EPR]<0.7,"Interested (between 50% and 70%)",
If(
'Email Results'[EPR]>=0.7,"Engaged >70%"))))

The issue is that it's not working when i choose a year as a filter (2017 or 2016), it gave me sometimes for a contact with 70% of email opened not interested 😞

 

The date of email opened and send are in the table of email results and not in the contact. 

 

Thank you in advance for your help 🙂

 

 

3 REPLIES 3
sanimesa
Post Prodigy
Post Prodigy

Can you post some sample data? My hunch is you might need to use a measure rather than a column. 

Email Send IDEmail Open flagContact ID
a2324000500nKcud10000025152dfgr
a2324000000nKcz0a2324000000nKd2
a23524000000nKcj1a2324000000nKbjg
a2324000000nKd90a2324000000nKbH
a2324000000nKcF1a2324000000nKbMg
a2324000000nKbgd0a2324000000nKorg
a2324000000nKd200000025152dfgr
a2324000000nKbjg0a2324000000nKd3
a2324000000nKbH0a2324000000nKbjg
a2324000000nKbMg0a2324000000nKbH
a2324000000nKorg0 

 

Email Send Id and Open flag are in the Email results Table 

And Contact in another Table

 

This is the column i have :

 Column : Brand Engagement = if('Email Results'[EPR]<0.2,"Not Interested <20%",

If('Email Results'[EPR]=0.2 ||'Email Results'[EPR]>0.2 && 'Email Results'[EPR]<0.5,"Somewhat (between 20% and 50%)",
If(
('Email Results'[EPR]=0.5 ||'Email Results'[EPR]>0.5) && 'Email Results'[EPR]<0.7,"Interested (between 50% and 70%)",
If(
'Email Results'[EPR]>=0.7,"Engaged >70%"))))

 

And the EPR as a measure 

EPR = CALCULATE('Email Results'[SUMEMAILOPEN]/'Email Results'[COUNTSENDID])

 

I thought about the measure but then i can not use the "brand egagement " as a Slicer or a filter Page...

 

Thank you for your help in advance 🙂

 

 

 

 

@Ilh  What you have provided does not help in understanding the data enough. 

However, you can also use the paremeter option to slice your data for different ranges, 

https://docs.microsoft.com/en-us/power-bi/desktop-what-if

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.