Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
smilingjohn
Specialist
Specialist

Current Vs Previous Percentage

Hi All.

Please find the attachment of the Qlikview file .

I have two bar charts, Current percentage and Preveious Percentage .

The first bar Chart ( Current percentage) is showing proper value. and the second chart
is giving me wrong data for previous year Percentage  .

If i see the by making selection from year filter the first chart show correct values on the selection
 .
when i see the previous values for second chart (Previous Percentage they are different )
Can you expertise please help me on this .

Thanks in Advance

1 Solution

Accepted Solutions
andrei_delta
Partner - Creator III
Partner - Creator III

hi,

(count({<[When Found]={'Production'},year={"$(=Max(year)-1)"}>}Key))/count({<year={"$(=Max(year)-1)"}>}Key) 

for previous 

 

With pleasure,

Andrei

View solution in original post

1 Reply
andrei_delta
Partner - Creator III
Partner - Creator III

hi,

(count({<[When Found]={'Production'},year={"$(=Max(year)-1)"}>}Key))/count({<year={"$(=Max(year)-1)"}>}Key) 

for previous 

 

With pleasure,

Andrei