I have confirmed a reproducible error generated on Power BI Report Server for measures that format a date using "FORMAT([Date], "Short Date", "en-us")" syntax. The error is resolved using "FORMAT([Date], "m/d/yyyy")" syntax. The error does not occur in Power BI Desktop.
I am using Power BI Report Server September 2021 GA - Ver. 15.0.1107.166, with the corresponding Power BI Desktop - Version: 2.97.2222.0 64-bit (September 2021). PBIRS is running on SQL Server 2019 Enterprise CU15.
The error received is as follows (it is misleading, but reproducible):
Unrecognized fields in this visual
We are not able to identify the following fields: Text Measures[Last Purchase Date Display]. Please update the visual with fields that exist in the dataset.
Please try again later or contact support. If you contact support, please provide these details.
More details: Could not resolve QueryDefinition due to invalid Measure reference 'Last Purchase Date Display' in the SourceEntity ''.'Text Measures'. This error often happens after the Measure or Entity was renamed or deleted. Please update the query/visual to use the new name or undo the name change.
Request ID: 5f750aa5-98c6-73a4-b337-4a605a4f33ee
Time: Wed Jun 29 2022 09:18:42 GMT-0400 (Eastern Daylight Time)
Service version: /powerbi/libs
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @johncpratt ,
Please correct me if I have misunderstood.
You are using Power BI Report Server, if you use "FORMAT([Date], "Short Date", "en-us")" syntax to format the date will generate the following error.
But you can solve this problem by using "FORMAT([Date], "m/d/yyyy")" syntax.
The problem is not reproducible in Power BI Desktop, do I understand it correctly?
Best Regards,
Community Support Team _ Caitlyn