Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
manu1512
Creator
Creator

Only with If statement

Hi all,

Can any one tell me the function of only ? and what does this function is doing in below expression

ONLY({<Well.Name=>}IF(Well.Name='HW08',TW_SP_BO.Reservoir_Pressure))

if i am removing ONLY({<Well.Name=>} then expression is giving me null values.


Please help



Regards

Manu

4 Replies
Anil_Babu_Samineni

This should work, Even if you remove Only() and Degrade Field? Aren't you?

IF(Well.Name='HW08',[TW_SP_BO.Reservoir_Pressure])

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
sunny_talwar

I think the only purpose here is to be able to use set analysis here... have you made a selection in Well.Name field when it turns to null?

olivierrobin
Specialist III
Specialist III

hello

extract from help

Only() returns a value if there is one and only one possible result from the aggregated data. If the records

so if it returns null, it is because theri is more that one value in Well.Name

manu1512
Creator
Creator
Author

Thanks sunny its works after selecting welll name