Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
Hamid_Reza_Rashidi
Contributor
Contributor

Conditional Calculation in a chart

Hi, everybody

Merry  Christmas

I have following table and going to have a Bar Chart

X-Axe be "Ord_Mah"

Y-Axe be (the sum of  Ord_Qty for the Max of Date_S.

(Please check the Pivot table at the end of this post.

Ord_MahDate_STech_NoOrd_QTY
Azar13990927YGVQ28
Azar13990927110116
Azar13990927100150
Azar13990929YGVQ30
Azar13990929110120
Azar13990929100160
Azar13990930YGVQ32
Azar13990930110124
Azar13990930100170
Azar13991001YGVQ34
Azar13991001110130
Azar13991001100180
Azar13991002YGVQ36
Azar13991002110134
Azar13991002100190
DAY13991003YGVQ35
DAY13991003110160
DAY13991004YGVQ38
DAY13991004110170

 

Date_SAzarDAY
1399092794 
13990929110 
13990930126 
13991001144 
13991002160 
13991003 94
13991004 108

 

Best wishes.

 

1 Solution

Accepted Solutions
edwin
Master II
Master II

if the requirement is to show only the ones in bold, try this expression:

= Sum(
	Aggr(
		If(Date_S = Max(TOTAL <Ord_Mah> Date_S), sum(Ord_QTY))
		, Date_S, Ord_Mah
	)
)
	


edwin_0-1608843940812.png

 

View solution in original post

1 Reply
edwin
Master II
Master II

if the requirement is to show only the ones in bold, try this expression:

= Sum(
	Aggr(
		If(Date_S = Max(TOTAL <Ord_Mah> Date_S), sum(Ord_QTY))
		, Date_S, Ord_Mah
	)
)
	


edwin_0-1608843940812.png