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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Conversión en línea y fuera de línea de grupos

Hola, tengo conversiones en línea y fuera de línea.

Ejemplos:

Google campaña de anuncios 1 - 10 clientes potenciales

línea telefónica 1 - 10 clientes potenciales

Sumaría estos clientes potenciales en una columna, pero con algunos filtros. Por ejemplo: suma "campaña 1" + "línea telefónica 1" en "campaña 1"; suma "campaña 2" + "línea telefónica 2" en "campaña 2".

¿Es posible?

Gracias.

8 REPLIES 8
Tahreem24
Super User
Super User

@tomasmartinek ,

Sería mejor si pudiera explicarlo con la entrada de muestra y la salida esperada.

Don't forget to give thumbs up and accept this as a solution if it helped you!!!

Please take a quick glance at newly created dashboards : Restaurant Management Dashboard , HR Analytics Report , Hotel Management Report, Sales Analysis Report , Fortune 500 Companies Analysis , Revenue Tracking Dashboard
ImkeF
Super User
Super User

Hola @tomasmartinek

Me temo que no entiendo la pregunta.

Por favor, echa un vistazo a estos enlaces:

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

e idealmente cargar algunos datos de muestra para que podamos simular rápidamente una solución para él:

https://community.powerbi.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-...

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Anonymous
Not applicable

Hola @ImkeF

A continuación se muestran tablas y resultados que espero. El cliente potencial puede generarse desde el sitio web o llamando. Sé por qué campaña es el cliente principal "fuera de línea". Si un visitante me llama en la línea telefónica 2 es de la campaña 2. El problema con la asignación es (tal vez), que son algunas líneas telefónicas emparejadas con más de una campaña. Los que tengo que dividir (siguiente paso).

Espero que esté más limpio.

Tabla 1

CampañaConduce
Campaign_110
Campaign_220

Tabla2

Phone_lineConduce
Phone_line_120
Phone_line_230

El resultado debe ser:

CampañaConduce
Campaign_130
Campaign_250

Hola @tomasmartinek

Parece que hay una posible solución aquí.

Además, puede crear una tabla de puente y vincular dos tablas con esta tabla y, a continuación, sumar valores de dos tablas.

Si usted tiene cualquier otro problema, no dude en hacernos saber.

Saludos

Maggie

Hola @tomasmartinek ,

suponiendo que su modelo tenga Table1 y Table2, pegue este código en el editor avanzado de una nueva consulta y siga los pasos:

let
    Source = Table1,
    #"Split Column by Delimiter" = Table.SplitColumn(Source, "Campaign", Splitter.SplitTextByEachDelimiter({"_"}, QuoteStyle.Csv, true), {"Campaign.1", "Campaign.2"}),
    #"Changed Type" = Table.TransformColumnTypes(#"Split Column by Delimiter",{{"Campaign.1", type text}, {"Campaign.2", Int64.Type}}),
    ConvertedTable1 = Table.RenameColumns(#"Changed Type",{{"Campaign.2", "no"}}),
    Custom1 = Table2,
    #"Split Column by Delimiter1" = Table.SplitColumn(Custom1, "Phone_line", Splitter.SplitTextByEachDelimiter({"_"}, QuoteStyle.Csv, true), {"Phone_line.1", "Phone_line.2"}),
    #"Changed Type1" = Table.TransformColumnTypes(#"Split Column by Delimiter1",{{"Phone_line.1", type text}, {"Phone_line.2", Int64.Type}}),
    ConvertedTable2 = Table.RenameColumns(#"Changed Type1",{{"Phone_line.2", "no"}}),
    #"Merged Queries" = Table.NestedJoin(ConvertedTable1, {"no"}, ConvertedTable2, {"no"}, "Renamed Columns1", JoinKind.LeftOuter),
    #"Expanded Renamed Columns1" = Table.ExpandTableColumn(#"Merged Queries", "Renamed Columns1", {"Leads"}, {"Leads.Phone"}),
    #"Inserted Addition" = Table.AddColumn(#"Expanded Renamed Columns1", "Addition", each [Leads] + [Leads.Phone], Int64.Type),
    #"Removed Columns" = Table.RemoveColumns(#"Inserted Addition",{"Leads", "Leads.Phone"})
in
    #"Removed Columns"

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

... envolvente del archivo también.

Imke Feldmann (The BIccountant)

If you liked my solution, please give it a thumbs up. And if I did answer your question, please mark this post as a solution. Thanks!

How to integrate M-code into your solution -- How to get your questions answered quickly -- How to provide sample data -- Check out more PBI- learning resources here -- Performance Tipps for M-queries

Anonymous
Not applicable

@Ink muchas gracias

amitchandak
Super User
Super User

@tomasmartinek ,

@ImkeF, ¿puede ayudar en este

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.