Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Need help for Bar chart

Dear All,

Below is my requirement

Month is Dimension

RM & PM are two values of field Catergory

I need Total of RM & PM as well

MonthPMRMTotal
Apr-11177144321
Apr-1214976225
May-11182130312
May-1219559254

& I have to show it as follows

Bar Chart.jpg

Please reply as soon as possible..its urgent

Thanks

1 Solution

Accepted Solutions
sreenivas
Creator III
Creator III

Expression1:-- Sum({$<Category={'RM'}, Month={$(=Max(Month)),$(=Max(Month)-1)}, Year={$(=Max(Year)),$(=Max(Year)-1)}>}Value)

Expression2:-- Sum({$<Category={'PM'}, Month={$(=Max(Month)),$(=Max(Month)-1)}, Year={$(=Max(Year)),$(=Max(Year)-1)}>}Value)

Expression3:-Column(1)+Column(2)

Dimension-Month Year

View solution in original post

10 Replies
sreenivas
Creator III
Creator III

Hi

PFA file and click on the FASTCHANGE for Barchart and Table option

Not applicable
Author

Hi sreenivas,

Thanks for quick reply.

RM & PM are not 2 seperate fields,instead they are values of field category.

So how can it be achieve in this case?

& one more thing...month values will be coming dynamic..like current year current month selection gives me

these four monthname values

ie Current Year Current Month

    Current Year Last Month

     Last Year Current Month

     Last Year Last Month

Based on these four I want to show RM & PM (which are field values of field Category) as well as Total values

sreenivas
Creator III
Creator III

In Expression1;-Sum({<Category={'RM'}>} valuefieldname)

Expression2;-Sum({<Category={'PM'}>} valuefieldname)

Expression3=column(1)+column(2)

sreenivas
Creator III
Creator III

Can u add the script for that file

Not applicable
Author

Hi sreenivas,

current year current month selection gives me

these four monthname values

ie Current Year Current Month

    Current Year Last Month

     Last Year Current Month

     Last Year Last Month

what about this??

Thanks.

Not applicable
Author

Not possible..since developement is done on client machine..& dont have permission to take the data

sreenivas
Creator III
Creator III

Specify the date format of that datefield

Not applicable
Author

Date format will be DD/MM/YYYY

Month will be Monthname(MM-YYYY)

sreenivas
Creator III
Creator III

Expression1:-- Sum({$<Category={'RM'}, Month={$(=Max(Month)),$(=Max(Month)-1)}, Year={$(=Max(Year)),$(=Max(Year)-1)}>}Value)

Expression2:-- Sum({$<Category={'PM'}, Month={$(=Max(Month)),$(=Max(Month)-1)}, Year={$(=Max(Year)),$(=Max(Year)-1)}>}Value)

Expression3:-Column(1)+Column(2)

Dimension-Month Year