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
saud968
Responsive Resident
Responsive Resident

Xlookup convert to DAX

Hi,

 

this is excel formula =IFERROR(XLOOKUP(AJ26022,Validation!A:A,Validation!B:B,"No",0,1),"") to give you context for the DAX i made thinking as this formula - =IFERROR(XLOOKUP(NEW_VALUE,Validation[Name],Validation[Dispatch],"No",0,1),"")

Below is my DAX 

DispatchedNew =

VAR DN = SUPPORT__CW_OPS_VOLUME_PARTNER_CARE[NEW_VALUE]

VAR CombinedValues = CONCATENATEX(Validation, Validation[Name] & Validation[Dispatch], ", ")

VAR ResultColumn = "No"

RETURN

    IF(

        CONTAINSSTRING(CombinedValues, DN),

        "Yes",

        ResultColumn

    )

 
however, I am getting Yes  against Name "Sarah Basto" where are as it is not part of the list of people under the Table Validation 

 

saud968_0-1701358926468.png

NameDispatch

Aditya GupteYes
Adrian AlvaresYes
Akshay DalviYes
Amey KamatYes
Aniket ChipkarYes
Arvind VishwakarmaYes
Ayraf ShaikhYes
Evan KaufmanYes
Frazer FernandesYes
Hardeep JaswalYes
Hena SoniYes
Hetal BhojakYes
Jessica HolmesYes
Jim WhitecottonYes
John PatelYes
Josh BurnsYes
Kelly AcostaYes
Kirit RanpariyaYes
Liam BajicYes
Mary HallYes
Mehjabeen SayedYes
Nadim SayedYes
Nicole ValenciaYes
Nolan PintoYes
Paul CollinsYes
Priyanka AgeYes
Rajeshkumar PatwaYes
Rolland GomesYes
Ronak WaghelaYes
Roopesh GowdaYes
Ruhi ShaikhYes
Sagar MoreYes
Salman PatelYes
Samson FernandezYes
Sanket BhayadeYes
Saud AnsariYes
Sunil DsouzaYes
Terry PhillipsYes
Vicki EdlerYes
Vinay SinghYes
Viraj DungraniYes
Yashwant SawantYes
Abhay PariharYes

@lbendlin @Ahmedx 

 @Ritaf1983 

1 ACCEPTED SOLUTION

If this post helps, then please consider accepting it as the solution to help other members find it faster.

View solution in original post

25 REPLIES 25
Ahmedx
Super User
Super User

pls try

 

and try this

 

saud968
Responsive Resident
Responsive Resident

Getting this error for 102 file 

saud968_0-1701364010152.png


Getting this error for 103 file 

 

saud968_1-1701364085752.png

 

you forgot the bracket

Screenshot_5.png

incorrectly specified tables

Screenshot_4.png

saud968
Responsive Resident
Responsive Resident

saud968_0-1701366303532.png

It is now giving no to all 

VAR _Result = CALCULATE(MAX(Validation[Dispatch]),CROSSFILTER(Validation[Name],SUPPORT__CW_OPS_VOLUME_PARTNER_CARE[NEW_VALUE],Both))
RETURN
IF(ISBLANK(_Result),"No",_Result)

gives yes for everyone
saud968_1-1701366803717.png

 

I don’t know what you're doing wrong, post the same file with the error so we can understand what’s wrong

saud968
Responsive Resident
Responsive Resident

https://drive.google.com/file/d/1_pW3R6ccJT7uMVistCHdHrqKC8XXk0-F/view?usp=drivesdk

@Ahmedx here is the file please check and help out. Thank you for all the work 

try it
But what I noticed is that when the measure is changed, the calculation is not updated immediately; you need to close the file and reopen it. and it's very strange

 

saud968
Responsive Resident
Responsive Resident

Thank you for your help @Ahmedx  it is not working as you can see below Data Migration is not part of the validation list.

saud968_0-1701403403937.png

 

try this

saud968
Responsive Resident
Responsive Resident

Thank you for the help I believe  I have identified the cause and reason for the panic was unnecessary.  So the concept was to check New_Value with Validate Table column Name. It was giving correct output but I failed to check debug if Sarah is showing up as Yes; What is the New_Value and the New_Value was part of the validation list hence Yes

saud968_0-1701405579597.png
There is another concern as you have the file the Month Unique Count column uses Rankx but I am not getting the ranking as 1, 2, 3 but 1, 1, for each entry. Should I post a new question or you can help with this article it. 

I appreciate all your help. 

 

create a new request and send me a link to the topic.

When I have time, I'll help, just don't panic 🤝

saud968
Responsive Resident
Responsive Resident

Thank you so much, link for the new post - https://community.fabric.microsoft.com/t5/Desktop/Ranking-for-multiple-entries/m-p/3562408#M1173100

Also is there a guide where I can attach PBIX file directly. 

If this post helps, then please consider accepting it as the solution to help other members find it faster.

Ahmedx
Super User
Super User

what do you have on SUPPORT__CW_OPS_VOLUME_PARTNER_CARE[NEW_VALUE]

you can share the pibx file

saud968
Responsive Resident
Responsive Resident

I can share the excel file if you want. I appreciate all your help @Ahmedx 

without a file it is difficult to understand the task create an example similar to your scenario without confidential data

saud968
Responsive Resident
Responsive Resident

please check the link below @Ahmedx 

https://drive.google.com/file/d/1tZPuqBd8oeT47BTaRz6W1vnpLiTc2jlM/view?usp=drivesdk

I forgot to create a relationship in the new file you can create a relationship with Column Name from Table1 and Case_Owner from Sheet 1

not one here matches

Screenshot_6.png

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.