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

The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!

Reply
Editor28
New Member

Pierdo los meses de mi grafico al publicar

Hola, agradecería muchisimo su ayuda con este problema que me esta volviendo loco.

Tengo un reporte que contiene dos pestaña cada una con un grafico donde el eje X son los meses del año, y el eje Y las ventas netas. 

El reporte funciona de maravilla y no tengo problema cuando realizo la publicación en el servicio de Power Bi, el problema aparece cuando realizo la actualización manualmente desde la web o a traves de actualizaciones programadas, entonces en lugar de tener las ventas por mes en el grafico, el unico mes que me aparece en el grafico es "enero" y me agrupa las ventas de todo el año en una sola columna. No se que hacer para solucionar esto.

9 REPLIES 9
Anonymous
Not applicable

Hi @Editor28 ,

Thank you for your kindly feedback!

I can't reproduce the problem you're facing. Could you please provide example data or sample files here to make it easier for us to test? We could offer you more help if we have information in detail. There is sensitive data that can be removed in advance. How to provide sample data in the Power BI Forum - Microsoft Fabric Community

Thanks for your understanding. Your time and cooperation are much valued by us. We are looking forward to hearing from you to assist further.

Best regards,

Lucy Chen

Anonymous
Not applicable

Hi @Editor28 ,

Could you please provide us with the format of date column? We need more information in detail of your data source to narrow down the issue! Thank you for your understanding!

In additon, please check out  the considerations and limitations of publishing to Web in the article Publish to web from Power BI - Power BI | Microsoft Learn.

Best regards,

Lucy Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Hi @Anonymous 

 

El tipo de columna que tengo para el eje X es Date, de hecho la tomo de la columna principal de mi tabla calendario. Para el eje Y principal utilizo dos medidas (Esto lo hago así para poder dar un color diferentes a los valores efectivos y los valores de la predicción, puesto que el grafico de barras y lineas no permite esta configuración sobre una misma medida)

-------------------------------------------

Medida Efectivo = 

 

Var ventas = 

Calculate([Ventas Efectivo],   -- Esta es una medida que suma las ventas de la tabla "Efectivo"

'calendar'[YearOrd] = 0) -- Valido que solo tome los valores del ultimo año

 

Return 

ventas

--------------------------------

 

Medida Forecast =

 

Var UltimoFecha =
Calculate(

Max(Efectivo[Fecha]),

All(Efectivo))

 

Var forecast = 

Calculate([Ventas Forecast],   -- Esta es una medida que suma las ventas de la tabla "Forecast"

'calendar'[YearOrd] = 0, -- Valido que solo tome los valores del ultimo año

'Forecast'[fecha] > ultimaFecha)  -- Aseguro que los datos de la predicción solo se muestren si no hay efectivos para la misma fecha

 

Return 

forecast

------------------------------------

 

Para el eje Y secundario, que es la linea punteada que se ve en negro en la imagen de la grafica, utilizo la siguiente medida:

 

Ventas LastYear =

Calculate([Ventas Efectivo],   -- Esta es una medida que suma las ventas de la tabla "Efectivo"

'calendar'[YearOrd] = 1) -- Valido que solo tome los valores del año anterior.

 

WhatsApp Image 2024-12-11 at 9.27.36 AM.jpeg

Hi @Anonymous 

 

The x-axis format is date type, I take it directly from the main column of my calendar table. The format of the y-axis is numerical, it corresponds to a measure that is responsible for evaluating the maximum date of effective values ​​that are in the "Effective" table to know from which date the budget is. It is a measure composed of two internal variables.

 

These are the two measurements that I use for the main Y axis (Originally it was just one but I had to divide it into two to be able to assign them different colors, because the bar and line graph does not allow this configuration):

 

---------------------------------------------

Measure Ventas =

 

var ultimaFecha = 
Calculate(
             Max(Efectivo[fecha]),

            All(Efectivo))

 

Var ventas = 

Calculate([Ventas Efectivas],  -- This is another measure that adds the sales column of the "Efectivo" table

'Calendar' [Yeard Ord] = 0)  -- here I'm just telling you to take the current year

 

Return

ventas

--------------------------------------

 

Measure Forecast = 

var ultimaFecha = 
Calculate(
             Max(Efectivo[fecha]),

            All(Efectivo))

 

Var Forecast = 

Calculate([Vetas Forecast],  -- This is another measure that adds the sales column of the "Forecast" table

'Calendar' [Yeard Ord] = 0),   -- here I'm just telling you to take the current year
'Forecast' [Fecha] > ultimaFecha)  -- I guarantee that the budget does not cross with the effective data according to the date

 

Return

Forecast

-------------------------------------------------

 

For the secondary y-axis, the black dotted line on the graph, I use this measurement:

 

Ventas Last Year =

 

Calculate([Ventas Efectivas],

'Calendar' [Year Ord] = 1)   -- here it is only valid that I take the last year

 




 

Hi @Anonymous 

 

The x-axis format is date type, I take it directly from the main column of my calendar table. The format of the y-axis is numerical, it corresponds to a measure that is responsible for evaluating the maximum date of effective values ​​that are in the "Effective" table to know from which date the budget is. It is a measure composed of two internal variables.

 

These are the two measurements that I use for the main Y axis (Originally it was just one but I had to divide it into two to be able to assign them different colors, because the bar and line graph does not allow this configuration):

 

---------------------------------------------

Measure Ventas =

 

var ultimaFecha = 
Calculate(
             Max(Efectivo[fecha]),

            All(Efectivo))

 

Var ventas = 

Calculate([Ventas Efectivas],  -- This is another measure that adds the sales column of the "Efectivo" table

'Calendar' [Yeard Ord] = 0)  -- here I'm just telling you to take the current year

 

Return

ventas

--------------------------------------

 

Measure Forecast = 

var ultimaFecha = 
Calculate(
             Max(Efectivo[fecha]),

            All(Efectivo))

 

Var Forecast = 

Calculate([Vetas Forecast],  -- This is another measure that adds the sales column of the "Forecast" table

'Calendar' [Yeard Ord] = 0),   -- here I'm just telling you to take the current year
'Forecast' [Fecha] > ultimaFecha)  -- I guarantee that the budget does not cross with the effective data according to the date

 

Return

Forecast

-------------------------------------------------

 

For the secondary y-axis, the black dotted line on the graph, I use this measurement:

 

Ventas Last Year =

 

Calculate([Ventas Efectivas],

'Calendar' [Year Ord] = 1)   -- here it is only valid that I take the last year

 




 

Anonymous
Not applicable

Hi @Editor28 ,

I have a table like yours, and I refreshed it manually, there was no problem.

1.png

In addition to check the data column, I recommend you make sure the data source and refresh settings are correct if the issue only occurs during manual updates or scheduled updates.

Could you please provide your refresh history here in detail to help us narrow down the issue?

2.png

Best regards,

Lucy Chen

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Te muestro como se ve mi grafico en la versión de escritorio  y como se ve una vez lo publico y actualizo el modelo de datos, es justo despues de esta acción que se daña. Mientras no realice la actualización del modelo de datos, el grafico se ve bien incluso en la versión web. 

 

Así es como se ve mi grafico original, tanto en la versión de escritorio como en la versión Web (siempre que no actualice el modelo de datos):

imagen 1imagen 1

 

Así es como se ve el grafico en la versión web una vez actualizó el modelo de datos:

 

Imagen 2Imagen 2

 

Cree un area de trabajo nueva para el ejercicio, y actualice una unica vez por ello el historial de actualizaciones tiene un solo registro. Pero con ello fue suficiente para obtener el problema que comento anteriormente.

 

Historial de actualizaciónHistorial de actualización

 

Perdon por la calidad de las imagenes, se me dificulta obtenerlas desde el pc donde tengo el desarrollo del pbix.

 

Agradezco mucho su colaboración.

Tutu_in_YYC
Super User
Super User

Translated by google:
Si todos los datos están asignados a enero, verifique los datos si la columna de fecha es incorrecta

la cuestión esque si tuviera un problema con los datos, tendria el problema tanto en la versión de escritorio como en la versión Web. Pero el problema solo se presenta una vez que tengo el archivo en el servicio de power Bi y actualizo el modelo de datos desde el area de trabajo. 

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! It's time to submit your entry.

January Power BI Update Carousel

Power BI Monthly Update - January 2026

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.