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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
sadiaasghar
Contributor
Contributor

bar chart in qlikview

I have KPI data for each project but projects are further sub-divided into several sub-projects and if a project has more than one sub-projects I have Dept KPI for that specific projects. So in my chart I want Marginal, Par, Focus, Wow trendlines, i have applied condition IF Dept KPI is null, EVALUATE 1st expression otherwise calculate 2nd but it's only working for 1st expression. Please help. I am attaching qvw document for reference. @sunny_talwar ,@Kushal_Chawda Please look into this

if(isnull([Dept KPI]),

Concat({<[KPI]={'Marginal'}>}[Weightage Description (Text)],chr(10),[Project]),

Concat({<[Dept KPI]={'Marginal'}>}[KPI Value],chr(10),[Sub-Project]))

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar

@sadiaasghar may be this

Aggr(If(IsNull([Dept KPI]),
	Concat({<[KPI] = {'Marginal'}>} [Weightage Description (Text)], Chr(10), [Project]),
	Concat({<[Dept KPI] = {'Marginal'}>} [KPI Value], Chr(10), [Sub-Project])
), [Sub-Project])

View solution in original post

2 Replies
Anil_Babu_Samineni

Can you explain what case it is not working? May be with screenshot or brief description.

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

@sadiaasghar may be this

Aggr(If(IsNull([Dept KPI]),
	Concat({<[KPI] = {'Marginal'}>} [Weightage Description (Text)], Chr(10), [Project]),
	Concat({<[Dept KPI] = {'Marginal'}>} [KPI Value], Chr(10), [Sub-Project])
), [Sub-Project])