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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
AndresEsteban
Helper I
Helper I

Problem with calculated measures

Hello

 

I have a data model with the following columns and formats:

  • Fecha - Date format (column 1)
  • Duration min - Double precision format (column 2)
  • Duration hours - Double precision format (column 3)
  • Available hours - measure with integer format (column 4)
  • Presence - measure with double precision format (column 5)

Both measure are the followings ones:

  • Available hours: 
Horas disponibles mañana = CALCULATE(DISTINCTCOUNTNOBLANK(Consulta1[Fecha])*8)
 
  • Presence: 
Presencia mañana (hora) =
var maximo_hora = DISTINCTCOUNTNOBLANK(Consulta1[Fecha])*8*DISTINCTCOUNTNOBLANK(Consulta1[label])
RETURN
IF((SUMX(FILTER(Consulta1, Consulta1[Turno]="Mañana"), Consulta1[duration_hours]))>maximo_hora, maximo_hora, (SUMX(FILTER(Consulta1, Consulta1[Turno]="Mañana"), Consulta1[duration_hours])))
 
All calculations in Power Bi Desktop are correct:
 
AndresEsteban_0-1713880318635.png

 

 

However, when you publish it to Power BI Service and schedule an update, at the time the update is performed the data changes:

 

AndresEsteban_1-1713881198267.png

 

 

Does anyone know why this happens and how I can solve it?

2 REPLIES 2
audreygerred
Super User
Super User

Hello! When you publish it to service it matches what you have in desktop, then when you refersh the data it changes? Have to you tried refreshing teh desktop data so that you can see if it lines up with what is showing in service? 





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

Proud to be a Super User!





Hi, yes, I have tried to refresh the desktop data and they are different from the ones refreshed in service

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.