Skip to main content
Announcements
See why Qlik is a Leader in the 2024 Gartner® Magic Quadrant™ for Analytics & BI Platforms. Download Now
cancel
Showing results for 
Search instead for 
Did you mean: 
eru-alelo
Contributor
Contributor

Create Billing Status Scenarios in Code / Criar Cenários de Status Faturamento no Código

Olá eu estou começando sem QlikView, e eu tenho uma base deles em .xls Eu preciso configurar um cenário de status Faturamento em algumas variáveis.

No' .xls Can I Get nesta condição, mas nenhum Qlik I Can not Get-lo porque é necessário condicionar como variáveis ​​Mês POR.

Eu adicionei 2 anexos, um deles e Imagem demonstrando fórmula Xls hum.

Another file in .xls, Where Do I CREATE A Non-Qlik Variable Taking Into Account As Column Z (Reference Data) INFORMATION + Billing Amount

-------------------------------------------------- -------------------------

Exemple em' .xls.

= SE (E (SOMA (J3; K3; L3; M3; N3) = 0; O3> 0); "RECONQUISTA"; SE (SOMA (O3; L3; M3; N3) = 0; "CHURN 90"; SE (SOMA (O3; N3) = 0; "CHURN 60"; SE (O3 = 0; "SEM Faturamento"; SE (AF6> 1,3; "AUMENTOU Faturamento"; SE (AF6> 0,7; "Faturamento estável ";" REDUZIU Faturamento ")))))))

==========================================================

Olá estou Iniciando sem o QlikView, e Tenho Uma base de de de em' .xls Que Preciso montar hum Cenário de Estado de Faturamento em algumas Variáveis.

.xls Não' eu Consigo Chegar Nesta Condição, MAS Não Qlik Não estou conseguindo Pois é Necessário condicionar Como Variáveis ​​Mês POR.

Adicionei 2 Anexo, hum Deles e Imagem demontrando hum Xls fórmula.

Outro arquivo em .xls, Onde Preciso CRIAR Uma Variável Não Qlik Levando em Conta Como INFORMAÇÕES da Coluna Z (Dados de Referência) + Valor de Faturamento

-------------------------------------------------- ----

----------------------------------------------

Abaixo Como estou lendo Como INFORMAÇÕES Fazer xls

SET ThousandSep = '';

SET DecimalSep = '';

SET MoneyThousandSep = '';

SET MoneyDecimalSep = '';

SET MoneyFormat = 'R $ # ## 0,00;. -R $ # ## 0,00.';

SET TimeFormat = 'hh: mm: ss';

SET DateFormat = 'DD / MM / AAAA';

SET TIMESTAMPFORMAT = 'hh DD / MM / AAAA: mm: ss [.fff]';

MonthNames SET = 'Jan; fev; mar; abr; mai; Jun; julho; atrás, definir; fora, novembro, dez';

DayNames Definir 'seg; ter, qua, qui, sex; sáb; dom';

// DEIXE MES_REF = '1';

// DEIXE MES_SAFRA = '7';

// Vamos MES_SAFRA_2 = 'julho';

[Faturamento]:

CARGA

[Id Usuário Legado],

     [Proprietário: Nome completo],

     [Carteira: Nome de Carteira],

     CONSULTOR,

     [Superintendente: Nome completo],

     GERENTE_NACIONAL,

     GERENTE_REGIONAL,

     [Tipo de Mercado: Nome],

     [Tipo de venda: Nome],

     CONTRATO,

     [Produto: Nome do Produto],

     Safra,

     [Dados de Referência Safra],

     CNPJ,

     [Nome da Conta],

     Cidade,

     UF,

     [Grupo vendedor: Nome],

     [Agência bancária],

     [Descrição Canal de Entrada],

     [Vendedor PF],

     [Data Real Efetiva do 1º Pagamento],

     [Descrição Forma de Pagamento Contrato],

     [Qtd. Dias de Prazo de Pagamento],

     GRUPO_REL,

     DATA,

     DIA,

     MES,

     ANO,

     FATURAMENTO,

     [Rouba monte],

     Roubado,

     [Contrato roubado/roubou: Número do contrato],

     ID_GRUPO,

     [Data de Cadastramento],

     [Data do último faturamento],

     Status,

     Ativo,

     NOME_CARTEIRA as Nome_Cart

FROM

(qvd);

[Hierarquia]:

LOAD [Id Usuário Legado],

     NOME_CARTEIRA,

     OBSERVACAO

FROM

(OOXML, etiquetas incorporadas, a tabela é ConsultoresIFV);

LEFT JOIN (Faturamento)

CARGA Distinct

ID_GRUPO,

(SUM (Faturamento) / COUNT (distintos (MES))) AS FAT_MÉDIO

residente Faturamento

Grupo POR ID_GRUPO;

LEFT JOIN (Faturamento)

CARREGAR Distinct

ID_GRUPO,

IF (SOMA (MES = 'JAN' OU MES = 'FEV'), 0, 'BATEDEIRA 60'

residente Faturamento

Grupo POR ID_GRUPO;

// Left Join (Faturamento)

//

// [Status_Batidão]:

//

// CARGA

// ID_GRUPO,

// IF (SUM (IF (MES = 'jul') = 0, 'Sem Faturamento',

//

// IF (SUM (Faturamento) / SUM (FAT_MÉDIO)> 1.3, 'Aumentou Faturamento',

// IF (SUM (Faturamento) / SUM (FAT_MÉDIO) <0,7, 'Faturamento Estável',

// IF (SUM (Faturamento) / SUM (FAT_MÉDIO)> 0,7, 'Reduziu Faturamento',

//

// 'Sem Faturamento')))) AS SUBCLASSE

//

// Residente Faturamento

// se (SOMA (SE (MES = 'Marco' OU MES = 'abril' OU MES = 'MAIO' OU 'MES Junho' = Faturamento), 0, 'BATEDEIRA> 90'

// IF (soma (SE (MES = 'abril' OU MES = 'MAIO' OU 'MES Junho' = Faturamento), 0, '90'


Mensagem editada por: Erualdo Santos

Mensagem editada por: Erualdo Santos

Mensagem editada por: Erualdo Santos

Labels (5)
0 Replies