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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
HelenMcC
New Member

Custom column based on two other columns with conditions

Hi

I'm new to the forum and relatively new to Power Bi and Power Query.  I've looked all over to try to find a solution so hoping you can help.  I have a data sheet containing participant data and employer data.  There are two columns containing local authority areas, one for the participant's address and one for the employer address.  I have created a column in Power Query which looks at both columns to see if they match and if they do, returns "Lives and works in area", otherwise "Lives in area and works out of area".  This works fine except it doesn't give the whole picture and it's the bit I'm stuck on!

 

I need to distinguish between i. Lives in area and works out of area ii. Lives in area and works in area iii. Lives out of area and works in area when using a filter.   When in Power Bi I want to be able to use visuals to show the percentage in each.  It may not be possible but thought I would check on here, I thought a separate column  would allow different visuals such as cards/pie chart to show percentages etc. 

 

Not sure if I need a column or set up filters and visuals differently.  I have two filters i. Employer local authority area ii. Participant local authority area.  I can use these to determine the numbers but it's not very practical and end users would struggle.  

Hope that makes sense, it's hurting my head! 🙂  Thanks for reading.

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors