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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Oceans88
Helper III
Helper III

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 @Oceans88 ,

 

"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 @Oceans88 ,

 

"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
Super User
Super User

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!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.