Skip to main content
Announcements
Have questions about Qlik Connect? Join us live on April 10th, at 11 AM ET: SIGN UP NOW
cancel
Showing results for 
Search instead for 
Did you mean: 
vilmar_bnu
Contributor
Contributor

dúvida criar registros

Olá a todos!

Estou com a seguinte situação:
Gostaria de criar novas linhas levando em consideração o campo parc.

abaixo o in line:

a:

LOAD * INLINE [

    data, parc, valor

    '10/01/2017', 0, 10

    '10/01/2017', 3, 20

    '10/01/2017', 2, 19

    '10/01/2017', 7, 50

];

ou seja a segunda linha ( '10/01/2017', 3, 20) eu gostaria de inserir mais 2 linhas alterando a data, fazendo que a data tenha os meses adicionados pelo campo parcela, gerando os dados dessa forma:

    '10/01/2017', 3, 20

    '10/02/2017', 2, 20

    '10/03/2017', 1, 20


E assim para os demais registros que tenha a parcela > 0.

Obrigado!

1 Solution

Accepted Solutions
afurtado
Partner Ambassador/MVP
Partner Ambassador/MVP

Vilmar, veja se te atende

QlikView x64 - [C__tmp_parc.qvw_]---2018-01-22 08_34_44.png

furtado@farolbi.com.br

View solution in original post

9 Replies
Anil_Babu_Samineni

Do you mean this?

The:

LOAD * INLINE [

    date, parc, value

    '10 / 01/2017 ', 0, 10

    '10 / 01/2017 ', 3, 20

    '10 / 01/2017 ', 2, 19

    '10 / 01/2017 ', 7.50

];

Join

Load * Inline [

date, parc, value

     '10 / 01/2017' , 3, 20

     '10 / 02/2017' , 2, 20

     '10 / 03/2017' , 1.20

];

Final:

NoConcatene

Load date, date_count Where date_count >1;

Load date, Count(date) as date_count Resident The Group By date;

Drop Table The;


OR https://community.qlikview.com/thread/191653

Please add me Anil_Babu_Samineni to interact faster when reply back. Speak low think High.

Before develop something, think If placed (The Right information | To the right people | At the Right time | In the Right place | With the Right context)
afurtado
Partner Ambassador/MVP
Partner Ambassador/MVP

Vilmar, veja se te atende

QlikView x64 - [C__tmp_parc.qvw_]---2018-01-22 08_34_44.png

furtado@farolbi.com.br
Thiago_Justen_

Corrigindo o script anterior que enviei:

a:


LOAD * INLINE [


    data, parc, valor


    '10/01/2017', 0, 10


    '10/01/2017', 3, 20


    '10/01/2017', 2, 19


    '10/01/2017', 7, 50


];



b:

NoConcatenate

LOAD

parc,

    valor,

    AddMonths (data,IterNo()-1) as data


Resident a while IterNo() <= parc;


Drop Table a;

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
Thiago_Justen_

Boa noite,

Alguma novidade sobre o assunto?

Se alguma resposta lhe serviu para solucionar seu questionamento, por favor,  feche a thread e compartilhe conosco a solução.

Abs e Sucesso!

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
Thiago_Justen_

Bom dia Vilmar,

Se alguma das soluções apresentadas lhe serviu para resolver o problema, favor, feche a thread marcando aquelas respostas que lhe foram úteis com a flag "Útil" e escolha uma para marcar como "Correta".

Manual do usuário | Como criar e gerir minhas perguntas?

Abs e Sucesso!

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago
vilmar_bnu
Contributor
Contributor
Author

Desculpe a demora no retorno, tive alguns imprevistos!

obrigado pela colaboração Thiago!

sua resposta também funcionou!

mais uma vez obrigado!

vilmar_bnu
Contributor
Contributor
Author

Obrigado Alessandro!

funcionou!

vilmar_bnu
Contributor
Contributor
Author

tks!

Thiago_Justen_

Imagina Vilmar. Bom saber que o problema foi resolvido!

Qualquer dúvida adicional, estamos à disposição!

Thiago Justen Teixeira Gonçalves
Farol BI
WhatsApp: 24 98152-1675
Skype: justen.thiago