Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hi all,
I am applying a DirectQuery connection to a big table which includes a date field (ACTUAL_DATE). Of course, since this is a DirectQuery connection, I cannot transform this field into a date type, which I find a big limitation in the analysis.
The temporary solution that I've applied is adding an Excel file to the model (Import mode). This file has only one column (NEW_DATE) with all the dates in the same format as the original table, thus I'm able to (1) link it to the orignal table and (2) use this new field as a date type field with all its functionalities. This seems to work just fine.
My question is, is there any alternative to this workaround, avoiding the need to load an additional manual Excel File?
Thank you in advance for your replies.
Hi @Anonymous ,
We can create a calculated table to work around like that.
Table = CALENDAR(MIN('Product'[SalesDate]),MAX('Product'[SalesDate]))
Hi again,
Any ideas? I'm still lost with this one.
Thanks!
Thank you for your reply. Unfortunately this approach is not working, since Power BI is not able to properly calculate the minimum amb maximum values for the field. For further reference, the following KPIs throw the following results:
It can't, as you can see in the following screenshot:
(For some reason I cannot add the image, you can find it here: i.ibb.co/C1JWR6h/error.png
Sorry it's in Spanish. Essentially it is saying that "this step leads to a query that is not compatible with DirectQuery mode" and suggests me to switch to Import, which I don't want.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 8 | |
| 8 | |
| 7 |