Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Posting on Qlik Community is temporarily paused for some users. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
dathathreya
Creator
Creator

If condition Problem

Hi all,

I was struck with an senario of if condition .Please help me out.

i have a table like ID,ledger code,Subledger1,Subledger2

Here ID and Ledger code is unique.But Subledger1 and 2 in not.wat my requirement is

ID,ledger code,Subledger1,Subledger2

101,4041,LG/mg/00001,0

101,4041,40432,0

I want to show only the LG/mg/00001 row the below one should be hide..

These are dimensions .Subledger1,Subledger2 only.Only for 2 id;s i have to hide in my table remainig all are unique.

Labels (1)
5 Replies
Anil_Babu_Samineni
MVP
MVP

May be use expression like FirstSortedValue(Subledger1, ID)

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
dathathreya
Creator
Creator
Author

Firssorted value will work on expression i think while i am using this it is showing error.

pradosh_thakur
Master II
Master II

why not use

where Subledger1='LG/mg/00001'

Learning never stops.
Anil_Babu_Samineni
MVP
MVP

What error you are facing using that? Does all fields from same table?

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
vinieme12
Champion III
Champion III

if you only want to show Text values in Subledger1 then use IsText()

=if(isText(Subledger1),Subledger1)  and check supress null values on this dimension

Vineeth Pujari
If a post helps to resolve your issue, please accept it as a Solution.