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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
jagannalla
Partner - Specialist III
Partner - Specialist III

Bar display one-on-one

Hello,

I've a table with fields Date and value. I want to display the sum of the value based on dimension date(i.e. first half one part, second half another part).

For eg:


Jan-Aug->4000

Sept-Dec->2000

Jan-Dec ->6000

The chart should look like this:

Sample.png

- The blue color shows data of value from jan to aug, red from sept to dec. Green shows entire data for 2012.

How can i achive this.

1 Solution

Accepted Solutions
Jason_Michaelides
Partner - Master II
Partner - Master II

Slight adjustment to the dimension names...

View solution in original post

8 Replies
Jason_Michaelides
Partner - Master II
Partner - Master II

Please post your app.

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

Please check enclosed app.

Jason_Michaelides
Partner - Master II
Partner - Master II

How's this?

Jason_Michaelides
Partner - Master II
Partner - Master II

Slight adjustment to the dimension names...

jagannalla
Partner - Specialist III
Partner - Specialist III
Author

I find the solution in best way i think so. Please check the file once.

rajni_batra
Specialist
Specialist

i have never used the function valuelist & didnt even find Qv help. can u explain y we use this

Jason_Michaelides
Partner - Master II
Partner - Master II

Your script is only using Month() therefore the same months in different years will be grouped together:

     If(Year(DateField)=Year(Today()),'Actual/Projected') as "Actual/Projected",

     If(Month(DateField)*1<$(vCurrentMonth),'Actual','Projected') as FleetCapacity, 

Maybe try:

     LET vCurrentMonth= Today();

     If(Year(DateField)=Year(Today()),'Actual/Projected') as "Actual/Projected",

     If(DateField<$(vCurrentMonth),'Actual','Projected') as FleetCapacity, 

Jason_Michaelides
Partner - Master II
Partner - Master II

It's in the help - look for "Synthetic Dimensions"