Está en la página 1de 4

1977

Columna medidor extraer texto desde –

Función count para medidores

Filtrar mayor igual a 10

Quitar las frt del campo sic

= Table.SelectColumns(#"Filas filtradas3",{"ID_CUENTA", "NOMBRE_CLIENTE", "MEDIDOR",


"MARCA_MEDIDOR", "MODELO_MEDIDOR"})

= Table.SelectRows(#"Otras columnas quitadas", each ([MARCA_MEDIDOR] = "CIRCUTOR" or


[MARCA_MEDIDOR] = "STAR INSTRUMENT" or [MARCA_MEDIDOR] = "UNION") and
([MODELO_MEDIDOR] <> "KR" and [MODELO_MEDIDOR] <> "NH" and [MODELO_MEDIDOR] <>
"NO-DEFINIDO" and [MODELO_MEDIDOR] <> "Luminaria_RFP" and [MODELO_MEDIDOR] <>
"CT"))

= Table.SelectRows(#"Filas filtradas1", each [MODELO_MEDIDOR] <> null and


[MODELO_MEDIDOR] <> "")

= Table.ReplaceValue(#"Filas filtradas2","S","",Replacer.ReplaceText,{"MEDIDOR"})

= Table.ReplaceValue(#"Quitar S","TAR INTRUMENT-","",Replacer.ReplaceText,{"MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado2","-NO UAR","",Replacer.ReplaceText,{"MEDIDOR"})

Combinar con IDC2M VS NIC para traer NIC

Rellenar las vacías con “No tiene NIC”


= Table.AddColumn(#"Valor reemplazado1", "NIC", each if [IDC2M VS NIC.NIC] = "No tiene NIC"
then [ID_CUENTA] else if [IDC2M VS NIC.NIC] = null then [ID_CUENTA] else [IDC2M VS NIC.NIC])

= Table.SelectColumns(#"Columna condicional agregada",{"MEDIDOR", "MARCA_MEDIDOR",


"NIC"})

= Table.AddColumn(#"Otras columnas quitadas1", "PLATAFORMA", each "C2M")

1269_a15 prime

1977_a14 c2m

= Table.ReplaceValue(#"Valor reemplazado","desco","",Replacer.ReplaceText,
{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado4","-N1","",Replacer.ReplaceText,{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado5","DECONOCIDO","",Replacer.ReplaceText,
{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado6","validar","",Replacer.ReplaceText,
{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado7","NO UAR","",Replacer.ReplaceText,


{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado8","N_3","",Replacer.ReplaceText,{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado9","M","",Replacer.ReplaceText,{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado10",".","",Replacer.ReplaceText,{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado12","D","",Replacer.ReplaceText,{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado13","Z","",Replacer.ReplaceText,{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado14","-","",Replacer.ReplaceText,{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado15","n","",Replacer.ReplaceText,{"SERIE_MEDIDOR"})
= Table.ReplaceValue(#"Valor reemplazado16","B","",Replacer.ReplaceText,{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado17","P","",Replacer.ReplaceText,{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado18","b","",Replacer.ReplaceText,{"SERIE_MEDIDOR"})

= Table.ReplaceValue(#"Valor reemplazado19","N_2","",Replacer.ReplaceText,
{"SERIE_MEDIDOR"})

=SI.ERROR(SI([@[RAZON_SOCIAL_MITHRA]]="No existe";"Crear en
MITHRA";SI(Y([@[SERIE_MITHRA]]=[@[SERIE_MEDIDOR]]);"Actualizado";"Pendiente
Proveedor"));"No es cliente AMI")

UNIVERSO_PRIME

COLUMNA SDP_MDM_R_COMPARATIVA

=SI(Y([@[IS_BACKUP]]="0";DERECHA([@SOCKET];1)="R");CONCATENAR([@SOCKET];"R");SI(Y([@[I
S_BACKUP]]="1";DERECHA([@SOCKET];1)="R");CONCATENAR([@SOCKET];"RR");SI([@[IS_BACKUP]
]="1";CONCATENAR([@SOCKET];"R");SI([@[IS_BACKUP]]="0";[@SOCKET];"Revisar"))))

Columna ¿Crear en MDM?

=SI([@[SDP_MDM]]=[@[SDP_MDM_R_COMPARATIVA]];"No";"Sí")

1895

= Table.RemoveRowsWithErrors(#"Encabezados promovidos", {"CODIGO_NIC"})

= Table.Distinct(#"Errores quitados", {"CODIGO_NIC"})

= Table.SelectRows(#"Duplicados quitados", each ([MODELO_MODELO] = "AMS-DDSEY-1-A1-


2020" or [MODELO_MODELO] = "AMS-DTS353-1-A5-2020" or [MODELO_MODELO] = "AMS-
DTS353-1R-A5-2020" or [MODELO_MODELO] = "AMS-DTS353-1R-A5-2021" or
[MODELO_MODELO] = "AMS-DTS353-V5-W1-2021" or [MODELO_MODELO] = "CIR-CIRWATT212-
1-A1-2018" or [MODELO_MODELO] = "CIR-CIRWATT410-1-A3-2018" or [MODELO_MODELO] =
"CIR-CIRWATT410-1-A5-2018" or [MODELO_MODELO] = "INE-DDS26D-1-A1-2020" or
[MODELO_MODELO] = "INE-DDSY23S-1-A1-2020" or [MODELO_MODELO] = "INE-DTS27-1R-A5-
2019" or [MODELO_MODELO] = "STR-DDS26D-1-A1-2019" or [MODELO_MODELO] = "STR-
DDS26D-1-A1-2020" or [MODELO_MODELO] = "STR-DDS26D-1-A1-2021" or [MODELO_MODELO] =
"STR-DDSY23S-1-A1-2020" or [MODELO_MODELO] = "STR-DTS27-1-A5-2018" or
[MODELO_MODELO] = "STR-DTS27-1-A5-2020" or [MODELO_MODELO] = "STR-DTS27-1R-A5-
2018" or [MODELO_MODELO] = "STR-DTS27-1R-A5-2020" or [MODELO_MODELO] = "STR-DTS27-
1R-A5-2021" or [MODELO_MODELO] = "STR-DTS27-V5-W1-2020" or [MODELO_MODELO] = "UNI-
DDSEY-1-A1-2020" or [MODELO_MODELO] = "UNI-DTS353-1R-A5-2020"))

= Table.SelectColumns(#"Filas filtradas2",{"CODIGO_NIC", "MARCA_MEDIDOR",


"SERIE_MEDIDOR"})

= Table.AddColumn(#"Filas filtradas1", "Personalizado", each "SAC")

También podría gustarte