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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
dgilm33
Helper I
Helper I

UNICHAR showing incorrectly

I have two tables (let's say table A and B). I'm joining on a 1 to many relationship (many being table B and 1 being table A). I'm joining on a unique identifier in both. Table A has unique numbers that don't show in table B. In table B I'm using UNICHAR 10004 to create a checkmark, that I can then put in a graph and do a conditional format of text green or yellow to show whether it is a direct code cross or simliar code cross. However, when I use this checkmark column in my graph, it lists checkmarks for every item, even those from table A that don't join. Is there a way I can have this green or yellow checkmark appear for those that join, and show blank for those that didn't join?

1 ACCEPTED SOLUTION
v-rzhou-msft
Community Support
Community Support

Hi @dgilm33 ,

 

I suggest you to try this measure.

UNICHAR = 
VAR _CATEGORY_B =
    VALUES ( 'Table B'[Category] )
RETURN
    IF ( MAX ( 'Table A'[Category] ) IN _CATEGORY_B, UNICHAR ( 10004 ), BLANK () )

My Sample:

RicoZhou_1-1661243473336.png

Result is as below.

RicoZhou_0-1661243453915.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

View solution in original post

3 REPLIES 3
v-rzhou-msft
Community Support
Community Support

Hi @dgilm33 ,

 

I suggest you to try this measure.

UNICHAR = 
VAR _CATEGORY_B =
    VALUES ( 'Table B'[Category] )
RETURN
    IF ( MAX ( 'Table A'[Category] ) IN _CATEGORY_B, UNICHAR ( 10004 ), BLANK () )

My Sample:

RicoZhou_1-1661243473336.png

Result is as below.

RicoZhou_0-1661243453915.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

parry2k
Super User
Super User

@dgilm33 what measure you are using to display the checkmark?

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

I have a column (called Conditional Format) in table B that shows 1 if the cross is Direct and 2 if it is similar. Then in the conditional format-Font color I am using Gradient, Values Only, doing a minimum of Conditional format column, formatting empty values as 0, and 1 is green and 2 is yellow.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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