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: 
ishansjain2095
Creator
Creator

How to compare Month wise ColumnName Sum of Revenue in sales?

Hi All,

Facing a problem in comparing month wise sales based on columnname and using the below expression to find out sales dynamically i.e. :

If(SUM({<Date = {"<=$(vCurrentMonthStart)>=$(vCurrentMonthEnd)"}>}[Revenue])
<
SUM({<Date = {"<=$(vPreviousMonthStart))>=$(vPreviousMonthEnd)"}>}[Revenue]),
chr( num#( '31', '(alt)') ),chr( num#( '30', '(alt)') )) & ' ' & Sum([Revenue])

 

Not able to compare it with last month and current month with '▲' and '▼' symbol used on above expression...

Please help!!!!

Labels (2)
3 Replies
sunny_talwar

Do you have date or month as your dimension in the chart where you are trying to use this?

ishansjain2095
Creator
Creator
Author

I have integrated month as variable of date...

ishansjain2095
Creator
Creator
Author

In measure using Sum(Sales) and want to use if Condition with chr( num#( '31', '(alt)') ) ->  '▲'  and chr( num#( '30', '(alt)') ) -> '▼'  symbols to find out on which month I sold most/MAX of my items on current as well as previous's month.

But when trying to use above expression I was unable to get correct results.....