Forum Discussion
date table and other calculated tables
hello , I'm quite a newbie at power Bi.
I'm creating a dashboard in Power BI desktop that I want to share by power bi web.
Because I need to create a custom table for date filtering , I've created my own data model that uses tables from a master dataset in direct query mode, and then add a date table calculated upon the dates from a couple of direct query tables. When I publish in service everything is ok , but the date table wont' get update when the underlie table change . Even if I try to force dataset update in bi service I get the error "Refresh is not supported for datasets with a calculated table or calculated column that depends on a table which references Analysis Services using DirectQuery." I've read different version about this limitation ( here seems there are no limitations )
is there really this great handicap?
andrea
2 Replies
- AnonymousNot applicable
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 _ RongtieIf this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
- biffoRegular Visitor
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 servicetable 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