Forum Discussion
DAX Date Parameter Paginated Report Format Error
Hi Anonymous ,
Did you check that this field is a date type field? Also, even by customising the date type, it needs to meet a recognisable date type, otherwise after FORMAT it corresponds to a text type.
Factfile'[Date]
refer to below:
Power BI Date Formatting | How to Change Date Format in Power BI? (wallstreetmojo.com)
If the problem is still not resolved, please provide detailed error information and let me know immediately. Looking forward to your reply.
Best Regards,
Henry
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi Henry,
Thanks for the response. I've set my date field to be a dd/mm/yyyy format in my data set and in PBI RB I've tried to write in the paramter to be this same format. I've also included the error message below. This must be a simple fix?
Query (4, 2) DAX comparison operations do not support comparing values of type Date with values of type Text. Consider using the VALUE or FORMAT function to convert one of the values.
----------------------------
Query execution failed for dataset 'Factfile2'.
----------------------------
An error has occurred during report processing.
----------------------------
An error occurred during local report processing.
- bradsy3 years ago
Microsoft Employee
Maybe make sure the text is date type in the DAX query? https://learn.microsoft.com/en-us/dax/date-and-time-functions-dax
Something like: DATEVALUE(@StartDate) - MarksmanWaugh792 years agoFrequent Visitor
It appears that unintentionally hidden date datasets may have been generated. To address this, please follow these steps: Right-click on the Datasets, select "Show Hidden," and proceed to delete the two hidden datasets.
It's possible that these datasets were inadvertently created through the use of the "Available Values" option on each parameter, which automatically generates DAX data tables. In my experience, these hidden tables often include a NULL record, contributing to the issue you've described.
If your intention was to utilize Available Values for a specific purpose, the aforementioned suggestion may not be applicable to your situation. Feel free to provide more details if additional assistance is required.