Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
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"
)
Solved! Go to Solution.
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")
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.
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")
Hello Greg,
You are truly amazing, your solution worked and fix my problem instantly.
Many thanks & have a great weekend 😉
Don
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")
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 55 | |
| 34 | |
| 31 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 71 | |
| 38 | |
| 35 | |
| 25 |