Forum Discussion
Datamart question
- 4 years ago
Hi rdnguyen ,
These kind of limitation is determined by the connection mode Live Connection itself. When the connection mode is Live Connection, model actions like build relationships, create calculations etc. are not supported in Power BI for the data source is a tabular model that can be used by Power BI directly. For such kind of data source, calculations like create Calculated columns, measures are completed in the data source. When you live connect to Datamarts, these limitations are applied as well. Fortunately, Power BI provides the ability to change the connection mode of Datamarts from Live Connection to Direct Query if you would like to calculate on connected model. With the Direct Query mode, you could build your Calculated columns and relationships.
Before the switch, you need enable DirectQuery for PBI datasets and AS in the Preview features and restart your Power BI Desktop.
Click on Make changes to this model
Then, the connection mode is Direct Query. You could create Calculated column or build relationships in this environment.
However, there still some considerations when creating Calculated columns with Direct Query mode. For more details, you could refer to Use DirectQuery in Power BI Desktop - Power BI | Microsoft Docs.
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please let me know. Thanks a lot!
Best Regards,
Community Support Team _ Caiyun
Another question regarding the relationship model, why cannot I build many-many relationship in datamart; Should we always make extra table to set up 1-many relationship for every many-many relationship?
Using a factless fact table as a bridge to avoid many:many relationships has always been the official recommendation anyway, so I don't think it's a big loss.