Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
gautik92
Specialist III
Specialist III

Month Char

I have a bar chart with two expressions showing values for max month and max(Month)-variable

in legend i want to show the name of the month

how can i achieve this?

Now its show no of month

16 Replies
gautik92
Specialist III
Specialist III
Author

It dint work Stephenedberkg

Not applicable

Following script will resolve

MapTable:

Mapping LOAD

RowNo() as MonthID,

Month(AddMonths((Today()),RowNo()+7)) as MonthName

AutoGenerate 12;

FactTable:

LOAD *, ApplyMap('MapTable',MonthID) as MonthName

Inline [

MonthID

1

2

3

4

5

6

7

8

9

10

11

12

];

gardenierbi
Creator II
Creator II

See attachment, do you mean something like this?

gautik92
Specialist III
Specialist III
Author

i askd for legends not dimesions

gardenierbi
Creator II
Creator II

Works the same! See attachment!

sasiparupudi1
Master III
Master III

use the expressions

=Month(MakeDate(year(Today(1)),max(Month)))

and

=Month(MakeDate(year(Today(1)),max(Month)-1))

for your labels in your chart

hth

Sasi

gautik92
Specialist III
Specialist III
Author

Excellent!!!! Thanks GardenierBI