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
Ivan_C
Helper I
Helper I

Datos de ventas por artículo, histograma personalizado por valor total del ticket

Hola a todos

Tengo una gran cantidad de datos de ventas (ID de ticket, fecha, nombre del artículo, cantidad, volumen de negocios). Estos datos están en el nivel de artículo con un identificador de vale único. Por lo tanto, cada IDENTIFICADOR de ticket puede tener varios elementos.

Ahora, me gustaría hacer un histograma con diferentes tamaños de ubicación personalizados basados en el valor total del ticket.

Por ejemplo: ¿cuántos billetes hay con un valor total de un boleto de 0-50o, 50-100o, 100-300o, 300-900o, etc.

Soy un todo perdido en resolver esto con Dax por lo que cualquier ayuda para llegar a la dirección correcta sería genial!

Gracias de antemano!

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hola

Comparte algunos datos con los que trabajar. ¿Debe determinarse el valor total del ticket sumando las cifras en la columna de volumen de negocios?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi Ashish,

Thanks for the reply.

 

Unfortunately I cannot share any of the data.

The idea is indeed to see the total of the ticket value (sum of the different item on the ticket) in different bins.

 

Enjoy your day,

Ivan

Hola

Vea si mi solución en este enlace ayuda - http://www.ashishmathur.com/segment-customers-into-dynamic-buckets/


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hola @Ivan_C ,

¿Está resuelto tu problema ahora?

Saludos
Kelly

¿He respondido a tu pregunta? ¡Marca mi puesto como una solución!

Hola Kelly,

Todavía tengo que comprobar las sugerencias publicadas aquí. Tan pronto como pueda, te lo haré saber.

Gracias

Ivan

DataInsights
Super User
Super User

@Ivan_C,

Pruebe esta columna calculada. Puede agregar agrupaciones adicionales a la función SWITCH.

Group = 
VAR vTicketID = SalesTest[Ticket ID]
VAR vTicketRows =
    FILTER ( SalesTest, SalesTest[Ticket ID] = vTicketID )
VAR vTotalQuantity =
    SUMX ( vTicketRows, SalesTest[Quantity] )
VAR vResult =
    SWITCH (
        TRUE (),
        vTotalQuantity > 0
            && vTotalQuantity <= 50, "0-50",
        vTotalQuantity > 50
            && vTotalQuantity <= 100, "50-100"
    )
RETURN
    vResult





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi,

Thanks for the quick response.

I will try out your solution as soon as possible.

 

Much appreciated!

Ivan

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