Forum Discussion
date table and other calculated tables
Hi biffo ,
There is a limitation when using DirectQuery mode in Power BI. When you create a calculated table or calculated column that depends on a table which references Analysis Services using DirectQuery, you cannot refresh the dataset in the Power BI service. This is because the calculated table or column is not stored in the data source, but is instead calculated on the fly by Power BI.
One workaround for this limitation is to use Import mode instead of DirectQuery mode. In Import mode, the data is loaded into Power BI and stored in a local data model, which allows you to create calculated tables and columns that can be refreshed in the Power BI service.
Another workaround is to use a different data source for your date table, such as a CSV file or an Excel spreadsheet. This will allow you to create a calculated table that can be refreshed in the Power BI service.
Keep in mind that using Import mode may not be feasible if you have a large amount of data, as it can impact performance and require more storage space.
If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .
Best Regards
Community Support Team _ Rongtie
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
thank you Rongtie,
unfortunately both solutions seems to be not good for me:
using import mode is not praticable due to dimensions;
using a date table from a csv file , means having a static table , while I need to have dates updated with the dates present in others model tables, that are dinamic. I explain further: I have two (big, not importable) dinamic tables A e B with dates and I need a single visual filter that has the union of both. And obviously I need to share the dashboard by service
| table A | table B |
| 01/01/2023 | 04/01/2023 |
| 02/01/2023 | 05/01/2023 |
| 03/01/2023 | 06/01/2023 |
| 04/01/2023 | 07/01/2023 |
| 05/01/2023 | 08/01/2023 |
| 09/01/2023 | |
| 10/01/2023 | |
| 11/01/2023 | |
| 12/01/2023 |
ps. with calculated column it seems there is no problem with direct query mode and they are updated
andrea