Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
antoniodneto
Creator II
Creator II

Bar Chart - Trimester and Months together, is it possible?

Hey guys,

 

Its possible to create a combined bar/line chart like this?

Imagem1.jpg

 

Dec/17 =  2017 accumulated

Dec/18 =  2018 accumulated

1T19 = First 2019 trimester accumulated

and next months.

 

Tks guys!!!

21 Replies
Yoshidaqlik
Creator II
Creator II

will need to adapt the field_date_mask field to some type of text

in the script make an adaptation

TEXT(QuarterName(field_date)) as field_date_mask

TEXT(YEAR(field_date)) as field_date_mask

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
antoniodneto
Creator II
Creator II
Author

Hi,

5f325589c6074de7b5b8e846817b2f3a.png

 

One question for example the third month of the quarter has the same value of the quarter.

Can I bring each own value for the months and quarters and years accumulated?

Tks

Yoshidaqlik
Creator II
Creator II

yes, you can customize it as you see fit

In the additional table put the start date on each row, it would be one more field like:

 

field_date as field_date_new_start,
QuarterStart(field_date) as field_date_new_start,
YearStart(field_date) as field_date_new_start,

 

 

in measuring the graph just put this new column over to make the start criterion

 

sum(if(field_date >=field_date_new_start AND field_date <=field_date_new, value))

 

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
Yoshidaqlik
Creator II
Creator II

Agora que reparei mas o formato das datas no print é brasileiro não é ?

um das metricas ta escrito risco total 

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
antoniodneto
Creator II
Creator II
Author

Olá,

Sim sou Brasileiro.

Estamos praticando nosso inglês rsss.

Vou testar essa sua última resposta.

antoniodneto
Creator II
Creator II
Author

Olá,

Deu certinho agora!!

9396823932404b96bcfdfc3ff9f7221f.png

Uma pergunta, eu consigo travar 24 meses do meu max data? e nos acumulados do trimestre eu consigo colocar na label tipo 1T2019?

Obrigado!

Yoshidaqlik
Creator II
Creator II

Consegue,

na dimensão coloque algo como

Aggr(
IF(Max(field_date_new,24) <= field_date_new, field_date_mask)
,field_date_new)

 

para a mascara do Trimestre coloque

Ceil(QuarterEnd(field_date)/12) & 'T' & YEAR(field_date)

 

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng
antoniodneto
Creator II
Creator II
Author

Acho que ainda estou fazendo algo errado.

 

 

Imagem1.png

 

antoniodneto
Creator II
Creator II
Author

@Yoshidaqlik  consegue ainda me ajudar?

Yoshidaqlik
Creator II
Creator II

opa Antonio

tudo bem?

só corrigindo a postagem da formula da mascara

Ceil(month(QuarterEnd(field_date))/3) & 'T' & YEAR(field_date)

o  restante parece estar ok

 

 Sem título.png

YoshidaQlik https://www.youtube.com/channel/UC1I9P8MqCZEhB6Nw3FdSqng