Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Solved! Go to Solution.
Hi, @Experiment626
I am glad to help you.
The two environments, Power BI Desktop and Power BI Service, may differ in the way they handle filters and contexts.
Perhaps you could try replacing AllSelected with All in the Measure formula to see if that solves the problem.
VAR _PreviousYearMonth =
CALCULATE(
MAX('Calendar'[Year_Month_Index]),
ALL('Calendar'),
KEEPFILTERS('Calendar'[Year_Month_Index] < _CurrentYearMonth)
)
Also you can try deleting Measure and recreating it to see if that solves your problem.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @Experiment626
I am glad to help you.
The two environments, Power BI Desktop and Power BI Service, may differ in the way they handle filters and contexts.
Perhaps you could try replacing AllSelected with All in the Measure formula to see if that solves the problem.
VAR _PreviousYearMonth =
CALCULATE(
MAX('Calendar'[Year_Month_Index]),
ALL('Calendar'),
KEEPFILTERS('Calendar'[Year_Month_Index] < _CurrentYearMonth)
)
Also you can try deleting Measure and recreating it to see if that solves your problem.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
That did it. Many thanks!
@Experiment626 What is the underlying storage mode? Import, DirectQuery, Live?
Imported
The Measure just doesnt work top from web bottom desktop
@Experiment626 OK, that rules out any issue with a gateway and such. So, when you say "not working" what do you mean by that? You get different values or you get an error or you get blanks? Have you tried resetting your report to the default in the Service ( it's a circular icon in on the far right of the ribbon ).
Yes
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 57 | |
| 17 | |
| 11 | |
| 10 | |
| 10 |