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: 
Not applicable

Numeric problem with the field "Year"

Hello everyone,

I am creating a bar chart which displays the occupants ratio of total employees percentage by the year.

I used the field "Year" as a dimension, and the expression is the calculated percentage already done in the data base.

As you can see below, the chart displays the year with lot of zeros:

porcentagem.JPG

How can i set the Year as integer??

Thanks

4 Replies
maxgro
MVP
MVP

in number tab

or in the load script

floor(Year) as Year

MarcoWedel

or a dimension like

=Num(Year,'0')

PrashantSangle

or try

Subfield(Year,'.',1)

or

mid(Year,1,4)

or

left(Year,4)

regards

Great dreamer's dreams never fulfilled, they are always transcended.
Please appreciate our Qlik community members by giving Kudos for sharing their time for your query. If your query is answered, please mark the topic as resolved 🙂
engishfaque
Specialist III
Specialist III

Deara Rodrigo,

Kindly find attached file, I hope you are looking for that one solution.

Kind regards,

Ishfaque Ahmed