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
Cipriano
Helper II
Helper II

Omitir graficar lineas de valores NULL en un gráfico de líneas

Buenas tardes a todos, 

 

1.- Tengo un grafico de lineas en Power Bi,

2.- El grafico posee una serie de datos: Eje Y Principal

3.- El grafico posee en el eje X, una fecha.

4.- Existen fechas para las cuales no hay datos, sin embargo el grafico dibuja una linea de la ultima fecha con datos hacia la siguiente fecha con datos.

5.- Es posible configurar el grafico para que no dibuje en automatico lineas, si no que solo dibuje lineas hasta donde existen datos y donde no existen, simplemente deje espacios vacios.

 

Tabla de datos:

 

01-ene-22100
01-feb-22300
01-mar-22 
01-abr-22 
01-may-22300
01-jun-22200
01-jul-22100
01-ago-22 
01-sep-22 
01-oct-22400
01-nov-22400
01-dic-22500

 

Grafico deseado:

 

Cipriano_2-1665763721309.png

 

 

Grafico mostrado en Power BI:

 

Cipriano_1-1665763665453.png

 

 

Lo que se busca es algo realizado en Excel, explicado en este articulo: Omitir celdas vacías en un gráfico de líneas - Tutorial Excel

 

Anexo liga a los archivos utilizados, saludos.

https://drive.google.com/drive/folders/1F9J-tfrfj0osCNaUtQ6oOtxNn5_xdm4o?usp=sharing

 

 

 

2 REPLIES 2
Cipriano
Helper II
Helper II

Good morning, it is not the solution I am looking for, since null values are replaced by 0, but they continue to graph continuous lines and not by ranges, this is what I am looking for: https://tutorialexcel.com/opoder-celdas-vacias-en -series-of-a-graph/

Shaurya
Memorable Member
Memorable Member

Hi @Cipriano,

 

Create a table that has the range of dates that you want to use in the axis. You can use:

 

Date = CALENDAR(MIN('Table'[Date]),MAX('Table'[Date]))

 

Pull the values for your Y-Axis in this table and assign 0 to dates that have no value. Use:

 

Value = IF(ISBLANK(LOOKUPVALUE('Table'[Value],'Table'[Date],'Date'[Date])),0,LOOKUPVALUE('Table'[Value],'Table'[Date],'Date'[Date]))

 

This will show a graph that drops to 0 for dates with no value.

 

Screenshot 2022-10-16 033712.jpg

 

Works for you? Mark this post as a solution if it does!
Consider taking a look at my blog: Forecast Period - Previous Forecasts

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.