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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
chhavi376
Creator II
Creator II

Conditional dimension in Line chart :: Qliksense

Hi All,

I have a requirement in Qliksense-that is if i want lines corresponding to the selected statuses from the filter and if only no status is selected then only one line correspond to 'ongoing' status should be displayed.

Dimension used:

IF(GETSELECTEDCOUNT(Status)>0,Status,'Ongoing')

Measure:

if(GetSelectedCount(Status)>0,

Count(distinct measure),

Count({<Status={'Ongoing'} >}distinct measure))

But i am getting a weird behaviour here. If i select values in status, 'ongoing' line is also displayed with values as 0.

it should not appear at all

community.png

Can we in any case make the2 dimensions- one for ongoing and other for all the values of status and make them conditional? like one dimension works if getselectedcount is 0 and one works when it is not .(This was easily possible in qlikview)

Can someone help?

6 Replies
Anil_Babu_Samineni

May be suppress Null value from If condition dimension.

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
chhavi376
Creator II
Creator II
Author

I have unchecked 'include null values' in dimension already. there isnt any such option for measure

Anil_Babu_Samineni

I don't think this is because of Measure. Even though, Can you check "Appearance" tab for a while in sense

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
chhavi376
Creator II
Creator II
Author

No, nothing there

Anil_Babu_Samineni

Why Mouse over shows same with text and data point? do you used Dual() over measure.

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
chhavi376
Creator II
Creator II
Author

No use of dual.

two dim:

Date and IF(GETSELECTEDCOUNT(Status)>0,Status,'Ongoing')

one meas:

Measure:

if(GetSelectedCount(Status)>0,

Count(distinct measure),

Count({<Status={'Ongoing'} >}distinct measure))

that is it