Creating calculated tables
Calculated tables in tabular models are built using DAX and purely calculations. Calculated tables allow you to create role-playing dimensions, filtered row sets, summary tables, or even composite tables (made from columns of more than one table). We will demonstrate the use cases in this section.
Creating a delivery date table to support role playing
In our model, we have used two dates – Invoice Date and Delivery Date – in the Sales
table. We have been using Invoice Date as our primary date in the model. This means that in order to refer to Delivery Date in calculations, you need to use the USERELATIONSHIP
function. Both Invoice Date and Delivery Date are related to our Date
table. However, only the relationship with Invoice Date is active.
You can visually identify inactive relationships in the Diagram view. In the following screenshot, you can see the two relationships. The inactive relationship is signified by the dotted line...