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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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