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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

Reply
AlakarHarijan1
Frequent Visitor

Crear una nueva tabla a partir de una existente

Hola Amigos,

Tengo una tabla a partir de la cual tengo que resumir los datos en una nueva tabla.

La primera tabla contiene columnas - nombre del cliente, región, tarifa (pagado/no pagado), etc.

Básicamente quiero crear una nueva tabla que muestre los datos por cliente sabio (por ejemplo, sólo cliente "A", región en la fila y recuento de pagado en la siguiente columna el recuento de no pagado int la siguiente columna.

Necesito el código dax. Alguien puede ayudarme, por favor.

3 REPLIES 3
v-zhenbw-msft
Community Support
Community Support

Hola @AlakarHarijan1 ,

Lo siento por no entender cuál es su resultado de deseo.

Si desea obtener la suma de ingresos, debe reemplazar la hoja1[Cuenta pagada] a sheet1[ingresos]. Power BI no puede obtener la suma del valor de tipo de texto.

Table =
SUMMARIZE (
    Sheet1,
    Sheet1[Region],
    "Paid Calls", COUNTX (
        FILTER (
            Sheet1,
            Sheet1[Stakeholder Code] = "UNIV"
                && Sheet1[Paid Count] = "Paid"
        ),
        Sheet1[Paid Count]
    ),
    " Not Paid Calls", COUNTX (
        FILTER (
            Sheet1,
            Sheet1[Stakeholder Code] = "UNIV"
                && Sheet1[Paid Count] = "Not Paid"
        ),
        Sheet1[Paid Count]
    ),
    "Total", COUNTX (
        FILTER ( Sheet1, Sheet1[Stakeholder Code] = "UNIV" ),
        Sheet1[Paid Count]
    ),
    " Revenue Received ", SUMX (
        FILTER (
            Sheet1,
            Sheet1[Stakeholder Code] = "UNIV"
                && Sheet1[Paid Count] = "Paid"
        ),
        Sheet1[revenue]
    )
)

Si no cumple con su requisito, ¿podría proporcionar una muestra de maqueta basada en datos falsos?

Será útil si puede mostrarnos el resultado esperado exacto basado en las tablas. Cargue sus archivos en OneDrive Para la Empresa y comparta el enlace aquí.

Por favor, no contenga ninguna Información Confidencial o Datos Reales en su respuesta.

Saludos

Equipo de Apoyo comunitario _ zhenbw

Si este post ayuda, por favor considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

parry2k
Super User
Super User

@AlakarHarijan1 así que supongo que ha pagado y no pagado, por cada fila, una columna está en blanco sin valor o es un valor cero?



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hola Parry,

Gracias por la respuesta, he descubierto una manera de resolverlo. usando el código debajo.

Table = SUMMARIZE(Sheet1,Sheet1[Region],"Paid Calls",COUNTX(FILTER(Sheet1,Sheet1[Stakeholder Code]="UNIV"&&Sheet1[Paid Count]="Paid"),Sheet1[Paid Count])," Not Paid Calls",COUNTX(FILTER(Sheet1,Sheet1[Stakeholder Code]="UNIV"&&Sheet1[Paid Count]="Not Paid"),Sheet1[Paid Count]),"Total",COUNTX(FILTER(Sheet1,Sheet1[Stakeholder Code]="UNIV"),Sheet1[Paid Count]))

pero ahora enfrentando dificultad esen otra cosa.

Ahora quiero obtener la suma de los ingresos usando el siguiente código.

Tabla: RESUME(Sheet1,Sheet1[Region],"Paid Calls",COUNTX(FILTER(Sheet1,Sheet1[Stakeholder Code]-"UNIV"&&Sheet1[Paid Count]-"Paid"),Sheet1[Paid Count]),"Llamadas no pagadas",COUNTX(FILTER(Sheet1,Sheet1[Stakeholder Code]-"UNIV"&&&&&&&&&&&&&&&&&&&&&&&&&&&&&"'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''/Sheet1[Recuento de pagos],"No pagados"),Sheet1[Cuenta de pago]),"Total",COUNTX(FILTER(Sheet1,Sheet1[Código de las partes interesadas]"UNIV"),Sheet1[Recuento de pagos])," Ingresos recibidos ",SUMX(FILTER(Sheet1,Sheet1[Código de participación]"UNIV"&&Sheet1[Cuenta de pagos]""Pagado") ,Sheet1[Cuenta de pagos]))

Pero su error.

Por favor, ayúdame con eso.

Helpful resources

Announcements
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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

Top Solution Authors