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
Anonymous
Not applicable

Filtering a lookup column

 

Hi Everyone, 

I need to retrieve Rate.Value only where Rate.Type = 20 and input it to column in the ServiceTicketline table. Using Serviceticketline.ServiceRateTable and Rate.ServiceRateTable as the join.



lookup.PNGLookup 2.PNG

 

 

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

The formula could be like below. Please refer to Lookupvalue.

 

lookupColumn =
LOOKUPVALUE (
    'Rate'[Value],
    'Rate'[RateType], 20,
    'Rate'[ServiceRatetable], [ServiceRateTable]
)

If this can't achieve your goal, please provide a sample.

 

Best Regards,

Dale

 

Community Support Team _ Dale
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

4 REPLIES 4
Anonymous
Not applicable

I am looking to only pull back values where rate type is "20"

Whats the best way to do this? 

My initial thought was a function like 

Lookupvalue(
     'Rate'[Value]where {ratetype}=20,
            'Rate'[ServiceRatetable],
                  'Serviceticketline'[ServiceRateTable])

this function does not work. 

Hi @Anonymous,

 

The formula could be like below. Please refer to Lookupvalue.

 

lookupColumn =
LOOKUPVALUE (
    'Rate'[Value],
    'Rate'[RateType], 20,
    'Rate'[ServiceRatetable], [ServiceRateTable]
)

If this can't achieve your goal, please provide a sample.

 

Best Regards,

Dale

 

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Instead of mentioning values to filter, how can I write this to ignore certain values or blanks?

Anonymous
Not applicable

WOW! it worked! 

Thank you 

Helpful resources

Announcements
PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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