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
YD-BI
Frequent Visitor

Measure gives wrong results in the Service

Hi,

 

I have a discrepancy between results produced by a measure in Desktop or in the Service (even after republishing).

Here is an example (last line is the measure and above is a 'debug measure' - first lines are fine).

First screenshot in Desktop, second in Service:

image.png

 

image.png

 

Here is the debug measure: (prints the VAR and the desired measure)

VAR X=1
VAR _jrEtd=MAX(dimJourEtude[Jour étude])
VAR _sjr=MAX(dimDateSejour[Date de Séjour])
VAR _cur=MIN(_jrEtd,_sjr+1)
RETURN
_jrEtd& " | "&_sjr&" | "&_cur&" | "&
CALCULATE(
SUMX(
DATESBETWEEN(
'Pick-ups par Segmentation'[Jour étude],
_cur -X+1,
_cur
),
CALCULATE(SUM('Pick-ups par Segmentation'[Pick-up]))
),
ALL(dimJourEtude[Jour étude])
)

 

When used in the matrix, dimJourEtude[Jour étude] is filtered on the page (=16/12/2020), hence the ALL in the measure, and dimDateSejour[Date de Séjour] is set by the column.

 

I also set another matrix to show the table 'Pick-ups par Segmentation' and see if the discrepancy came from there, but to no avail: both Desktop and Service have the correct total for 'Pick-ups par Segmentation'[Pick-up]...

 

Any idea where the issue might come from?

 
 
3 REPLIES 3
v-kelly-msft
Community Support
Community Support

Hi @YD-BI ,

 

Are there any filters applied in Service?

 

Best Regards,
Kelly

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

Hello Kelly,

 

The only filter applied is on dimJourEtude, and it is applied in the same way in Desktop or in Service.

Hi  @YD-BI ,

 

Remove the filter and check whether the results are the same.

Then add the filter in desktop and Service to see whether the issue the solved.

Or you could download the pbix file from Service to local machine to check whether it is showing the same.

Below is the reference:

https://docs.microsoft.com/en-us/power-bi/create-reports/service-export-to-pbix

 

 

 

Best Regards,
Kelly

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

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.