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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
Anonymous
Not applicable

Additional wildcard Filter for LOOKUPVALUE

Hello & Happy Friday,

 

Using the DAX LOOKUPVALUE code below is it possible add an additonal wildcard filter on CRITSITS'[CritSit Event Type] = "*Metric*"?

 

The DAX code below works great but I need an additional wildcard filter to narrow down / pin point the desired results.

 

Thank you in advance

 

 

CritSitVerified = 
    IF(ISBLANK(
        LOOKUPVALUE('CRITSITS'[CritSit Event Type],'CRITSITS'[Ticket ID], 'CROutages'[RTPA])),"No","Yes"
)

 

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

You may have better luck with just simple filtering like this:

 

CritSitVerified = 
    IF(ISBLANK(
      MAXX(
        FILTER(
          'CRITSITS',
          'CRITSITS'[Ticket ID] = 'CROutages'[RTPA] &&
            (SEARCH("Metric",'CRITSITS'[CritSit Event Type],1,-1) > 0)
        ),
        'CRITSITS'[CritSit Event Type]
      )),
"No","Yes")

 



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...

View solution in original post

4 REPLIES 4
candresbq
Frequent Visitor

Hello everyone.

I would like to know how you can use the lookupvalue function with a filter, if you have any example it would be very helpful.

Thank you.

Greg_Deckler
Community Champion
Community Champion

You may have better luck with just simple filtering like this:

 

CritSitVerified = 
    IF(ISBLANK(
      MAXX(
        FILTER(
          'CRITSITS',
          'CRITSITS'[Ticket ID] = 'CROutages'[RTPA] &&
            (SEARCH("Metric",'CRITSITS'[CritSit Event Type],1,-1) > 0)
        ),
        'CRITSITS'[CritSit Event Type]
      )),
"No","Yes")

 



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

Hello Greg,

 

You are truly amazing, your solution worked and fix my problem instantly.

 

Many thanks & have a great weekend 😉

Don

 

az38
Community Champion
Community Champion

Hi @Anonymous 

try a column

CritSitVerified = 
var _lookUp = CALCULATE(FIRSTNONBLANK('CRITSITS'[CritSit Event Type], 1), 'CRITSITS'[Ticket ID] = 'CROutages'[RTPA], SEARCH("Metric", CRITSITS'[CritSit Event Type] )> 0 )
RETURN
    IF(ISBLANK(_lookUp),"No","Yes")

 

 


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.