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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Anonymous
Not applicable

Help with this problem

Hi All,

 

Im having dificukties with this one: 

- Table A = Has unique number of GUIDs im tracking

 

- Table B =

  • Has Sales numbers in for thousands of GUIDs 
  • Has a 3 columns User GUID, End User GUID, Sales KUSD

 

What i want to achieve is how to track only selected GUIDs from Table A in Table B for both User & EndUser. 

 

What i was thinkning is:

 

Creating a calculated column or measure that does the following:

If ( TableA[GUID] = TableB[User GUID] and_or TableB[End User GUID]; Display found GUID;  Display nothing)

 

The point is to display a new custom column with GUID found in above operation. 

 

Any ideas how i can code somthing like this in Query editor? 

 

Thanks for any help

                  

                  

 

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

Hi @Anonymous ,

 

"What i want to achieve is how to track only selected GUIDs from Table A in Table B for both User & EndUser. "

"The point is to display a new custom column with GUID found in above operation. "

Maybe you can try this measure:

 

Measure = 
IF(
    SELECTEDVALUE('Table A'[ GUIDs ]) = MAX('Table B'[User GUID]) || SELECTEDVALUE('Table A'[ GUIDs ]) = MAX('Table B'[ End User GUID]),
    MAX('Table A'[ GUIDs ]),
    BLANK()
)

 

aaaa5.PNG

 

Best regards,
Lionel Chen

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

2 REPLIES 2
v-lionel-msft
Community Support
Community Support

Hi @Anonymous ,

 

"What i want to achieve is how to track only selected GUIDs from Table A in Table B for both User & EndUser. "

"The point is to display a new custom column with GUID found in above operation. "

Maybe you can try this measure:

 

Measure = 
IF(
    SELECTEDVALUE('Table A'[ GUIDs ]) = MAX('Table B'[User GUID]) || SELECTEDVALUE('Table A'[ GUIDs ]) = MAX('Table B'[ End User GUID]),
    MAX('Table A'[ GUIDs ]),
    BLANK()
)

 

aaaa5.PNG

 

Best regards,
Lionel Chen

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

Greg_Deckler
Community Champion
Community Champion

Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Solution Authors
Top Kudoed Authors