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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
FranciscoE
Frequent Visitor

Graficar informacion

Soy nuevo utilizando Power Bi y he tratado de realizar una grafica de barras a partir de una tabla como la siguiente

 

Tabla 1

 

Número de Empleado

Fechav

Selecciona el Hangar

Ingrese la matricula

Selecciona la línea

Artículo 1

Elemento 2

Artículo 3

10001639

09/08/2019

Hangar 2

N153PQ

VED 1

n / A

0

1

10001255

29/08/2019

Hangar 3

909

EDV 3

1

0

1

10001387

29/08/2019

Hangar 1

9507

DAL 8

0

0

1

10001569

29/08/2019

Hangar 2

907

EDV 2

1

1

n / A

10001639

29/08/2019

Hangar 1

N542US

DL7

0

1

1

10001564

29/08/2019

Hangar 1

6714

DL1

0

1

1

10001524

30/08/2019

Hangar 1

3760

DL4

0

0

1

10000720

29/08/2019

Hangar 3

XA-AMB

AMX2

1

1

0

277616

30/08/2019

Hangar 3

N259JQ

JSX2

1

n / A

0

10001639

30/08/2019

Hangar 1

N3759

DL6

0

0

1

10001255

 

30/08/2019

Hangar 3

XA - AMB

AMX1

1

0

1

10001557

30/08/2019

Hangar 2

907

EDV 2

1

n / A

0

10001564

30/08/2019

Hangar 1

3760

DL4

1

1

0

10001387

30/08/2019

Hangar 1

9507

DL8

1

1

0

10001524

30/08/2019

Hangar 2

924

VED 1

1

1

0

 

* Solo que el gráfico de barras debe mostrar el 0 como 0%, el 1 como 100%, y el N / A como tal N / A. Se segmenta por fecha parta dar un porcentaje acumulado por dia o periodo por cada Item.

 

Algo asi.

 

aqui2.jpg

Muchas gracias.

 

1 ACCEPTED SOLUTION

Let's see if this is similar to what you want to do. I made an unpivot of the table to have two columns of Item 1, 2, 3. You can view it in the Power Query Editor and you can do so by selecting the Columns in Item 1, 2, 3 and clicking "Unpivot only selected columns"

The "NA" will be difficult to show on the graphic - don't know a way to do it automatically. You can only do this in a table or matrix.

The sample file is attached below the signature.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

View solution in original post

5 REPLIES 5
AllisonKennedy
Community Champion
Community Champion

@FranciscoE
No entiendo muy bien que quiere hacer?

Item 1, Item 2, Item 3 corresponden a cuales columnas en su tabla?

Quiere hacer una suma de todos los valores en la fecha seleccionada?

Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Gracias por la respuesta.

 

La tabla correcta es la siguiente:

 

Ingrese el número de Empleado

Ingresa la fecha

Selecciona el Hangar

Ingrese la matricula

Selecciona la línea

Item 1

Item 2

Item 3

10001639

09/08/2019

Hangar 2

N153PQ

EDV 1

N/A

0%

100%

10001255

29/08/2019

Hangar 3

909

EDV 3

100%00

0%

100%

10001387

29/08/2019

Hangar 1

9507

DAL 8

0%

0%

100%

10001569

29/08/2019

Hangar 2

907

EDV 2

100%

100%

N/A

10001639

29/08/2019

Hangar 1

N542US

DL7

0%

100%

100%

10001564

29/08/2019

Hangar 1

6714

DL1

0%

100%

100%

10001524

30/08/2019

Hangar 1

3760

DL4

0%

0%

100%

10000720

29/08/2019

Hangar 3

XA-AMB

AMX2

100%

100%

0%

277616

30/08/2019

Hangar 3

N259JQ

JSX2

100%

N/A

0%

10001639

30/08/2019

Hangar 1

N3759

DL6

0%

0%

100%

10001255

30/08/2019

Hangar 3

XA - AMB

AMX1

100%

0%

100%

10001557

30/08/2019

Hangar 2

907

EDV 2

100%

N/A

0%

10001564

30/08/2019

Hangar 1

3760

DL4

100%

100%

0%

10001387

30/08/2019

Hangar 1

9507

DL8

100%

100%

0%

10001524

30/08/2019

Hangar 2

924

EDV 1

100%

100%

0%

 

 

Necesito Sumar y hacer un promedio del total de los valores por fecha y por Item, obviamente el promedio se hara cuando se seleccione un periodo de fechas, pero igul funciona para un solo dia.

 

El grafico final sera algo asi:

 

aqui2.jpg

 

ya coloque un segnentador de fechas para el periodo.

 

fecccc.png

 

 

Saludos.

 

 

 

Item 1, 2 & 3 was translated as Item 1, 2 & 3

Let's see if this is similar to what you want to do. I made an unpivot of the table to have two columns of Item 1, 2, 3. You can view it in the Power Query Editor and you can do so by selecting the Columns in Item 1, 2, 3 and clicking "Unpivot only selected columns"

The "NA" will be difficult to show on the graphic - don't know a way to do it automatically. You can only do this in a table or matrix.

The sample file is attached below the signature.


Please @mention me in your reply if you want a response.

Copying DAX from this post? Click here for a hack to quickly replace it with your own table names

Has this post solved your problem? Please Accept as Solution so that others can find it quickly and to let the community know your problem has been solved.
If you found this post helpful, please give Kudos C

I work as a Microsoft trainer and consultant, specialising in Power BI and Power Query.
www.excelwithallison.com

Thank you very much Allison you really helped me with the solution.

Greetings.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.