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

July 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more

Reply
Anonymous
Not applicable

How do you create a Conditional Column from 2 tables ?

I need to compare email addresses.

 

If Table "serial" (email address) is different from Table "Monthly Billing" (email address), display Yes

If Table "serial" (email address) is the same as Table "Monthly Billing" (email address), display No

 

The Conditional Column name will simply be labeled Mismatch in the dashboard.

 

How can this be written out and how/where do I place this ?

I have not excelled in formulas yet.

Need ASAP if someone could help

1 ACCEPTED SOLUTION
Anonymous
Not applicable

RESOLVED:

 

Mismatch = if(MAXX(FILTER('Monthly Billing','Monthly Billing'[Tangoe Owner Email]='users'[Intune Owner Email]),'Monthly Billing'[Tangoe Owner Email])=users[Intune Owner Email],"NO","Yes")

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

In which of the 2 tables do you want to write the calculated column formula?  Of the 2 tables which table has each e-mail listed only once (no repetitions).  It is best to share the link from where i can download your PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
ryan_mayu
Super User
Super User

@Anonymous 

you can try to create a column

Column = if(MAXX(FILTER('Monthly Billing','Monthly Billing'[email address]=serial[email address]),'Monthly Billing'[email address])=serial[email address],"No","Yes")




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

The following DAX expression appears when creating column...

A single value for column 'Intune Owner Email' in table 'users' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

 

Please advise.

DAX error.JPG

 

 

 

 

 

@Anonymous 

are you creating a measure?

could you pls provide some sample data?

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Intune Owner Email is from the users table.

Tangoe Owner Email wis from the Monthly Billing table.

I need a column or measure that compares the 2 columns and displays mismatches in a separate column on my dashboard.

 

cagonzalez_0-1628353387466.png

 

When I apply the following as a calculated column:

Mismatch = if(MAXX(FILTER('Monthly Billing','Monthly Billing'[Tangoe Owner Email]=users[Intune Owner Email]),'Monthly Billing'[Tangoe Owner Email])=users[Intune Owner Email],"No","Yes")

 

I get the following error:

 

A single value for column 'Intune Owner Email' in table 'users' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.

 

 

@Anonymous 

pls see the attachment below





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

RESOLVED:

 

Mismatch = if(MAXX(FILTER('Monthly Billing','Monthly Billing'[Tangoe Owner Email]='users'[Intune Owner Email]),'Monthly Billing'[Tangoe Owner Email])=users[Intune Owner Email],"NO","Yes")

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

Fabric Community Sticker Design Challenge Barcelona Carousel

Fabric Community Sticker Challenge - Barcelona 2026

If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!

July Power BI Update Carousel

Power BI Monthly Update - July 2026

Check out the July 2026 Power BI update to learn about new features.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.