cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tinnafenger
Frequent Visitor

Calculation in measure changes from PBI Desktop to PBI Service

Hi, 

 

I have a measure in Power BI :

Salesplan liters = Calculate(SalesPlan[SalesPlanLiters],
FILTER(ALLSELECTED(Dates),
Dates[Year-Month] >= MAX(Dates[Year-Month])))
 
Year-Month is a calulcated column = EOMONTH(Dates[Date],0)
 
In Power BI Desktop this works fine and gives me full month of the current month visible in a graph compared to actual produced liters. When I publish the report then at first the calculation looks correct, but then after a run of scheduled refresh the calculation changes and stops to show the full month and shows MTD.
 
Do you know what might cause this?
 
Thanks,
Tinna
 
1 REPLY 1
lbendlin
Super User
Super User

Dates[Year-Month] >= MAX(Dates[Year-Month])

 

How can it ever be larger than the maximum?

 

Please provide sanitized sample data that fully covers your issue. Paste the data into a table in your post or use one of the file services. Please show the expected outcome.

Helpful resources

Announcements
Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May 23 2022 epsiode 5 without aka link.jpg

The Power BI Community Show

Welcome to the Power BI Community Show! Jeroen ter Heerdt talks about the importance of Data Modeling.

Power BI Dev Camp Session 22 with aka link 768x460.jpg

Check it out!

Mark your calendars and join us on Thursday, May 26 at 11a PDT for a great session with Ted Pattison!

charticulator_carousel_with_text (1).png

Charticulator Design Challenge

Put your data visualization and design skills to the test! This exciting challenge is happening now through May 31st!

Top Solution Authors
Top Kudoed Authors