Hi,
I am trying to create an app using power apps.
I have connected the desktop application and PowerApp to read the data from google sheets. The datatype are same for column called patient_no.
Hi,
I am trying to create an app using power apps.
I have connected the desktop application and PowerApp to read the data from google sheets. The datatype are same for column called patient_no.
I tried to combine the data by converting but it didnt work.
1. LookUp(Sheet1, Patient_No = First(PowerBIIntegration.Data), Patient_No)
2. LookUp(Sheet1, Patient_No = First(PowerBIIntegration.Data), Int(Patient_No))
3. LookUp(Sheet1, Int(Patient_No) = First(PowerBIIntegration.Data), Int(Patient_No))
4. LookUp(Sheet1, Int(Patient_No) = First(PowerBIIntegration.Data), Patient_No)
but none seems to be working.
Incompatible types for comparison.
Can anyone help me here?
I tried to combine the data by converting but it didnt work.
1. LookUp(Sheet1, Patient_No = First(PowerBIIntegration.Data), Patient_No)
2. LookUp(Sheet1, Patient_No = First(PowerBIIntegration.Data), Int(Patient_No))
3. LookUp(Sheet1, Int(Patient_No) = First(PowerBIIntegration.Data), Int(Patient_No))
4. LookUp(Sheet1, Int(Patient_No) = First(PowerBIIntegration.Data), Patient_No)
but none seems to be working.
@NarendarYadav Which formula worked for you?
It worked but the app is really slow. Can we do anything to make it little faster ?
Thank you all. It worked.
Hi @cha_cha
I have the selected following fields in PowerBi
1. Patient_No
2. Patient_Name
3. Action_Button
Hi @LaurensM,
I tried this
LookUp(Sheet1, Patient_No = First(PowerBIIntegration.Data).Patient_No)
Error Message : Name isn't valid. 'Patient_No' isn't recognised.
LookUp(Sheet1, Patient_No = First(PowerBIIntegration.Data).Patient_No).FieldNameToDisplay
Error Message: Name isn't valid. 'Patient_No' isn't recognised. Name isn't valid. 'FieldNameToDisplay' isn't recognised
Can you please share what are the fields selected in the PowerBI?
Hi @cha_cha ,
I tried both the suggestions and both showed errors.
LookUp(Sheet1, Patient_No = First(PowerBIIntegration.Data).Patient_No)
Error Message : Name isn't valid. 'Patient_No' isn't recognised.
LookUp(Sheet1, Patient_No = Value(First(PowerBIIntegration.Data).Patient_No))
Function 'Value' has invalid arguments.
Hello @NarendarYadav
LookUp(Sheet1, Patient_No = First(PowerBIIntegration.Data).Patient_No)
LookUp(Sheet1, Patient_No = Value(First(PowerBIIntegration.Data).Patient_No))
Please try the two above.
@NarendarYadav could you try the following adjustment:
//With the function below you will be comparing the Patient_No fields
LookUp(Sheet1, Patient_No = First(PowerBIIntegration.Data).Patient_No).FieldNameToDisplay
The last .FieldNameToDisplay is optional. Remove this if you want to display it as a record in a gallery. If you want to display it in a Text Control, you will need to specify the field.
If I answered your question, would you be so kind as to accept it as a solution.
Thanks!
WarrenBelz
146,513
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,692
Most Valuable Professional