I am trying to fix the performance issue for tabular model. Below is the issue that I want to fix.
For the model there is a table Order Fact Table which holds the below attributes. In the Order table the Sales is already calculated in the view using price * quantity
Sales Table structure is like below
Sales Id,productidpricekey,T_Sales,timkey,cost,quantity
There is another price table which hold price information for the product. The measures are written in this table.
The price table structure is like this productidpricekey,product number,price,product_category
The measure sale is written as sales = sum('Sales'[T_Sales])
So when the user access this model from pivot table. There is no peformance issue for the below attributes in pivot.
product_category,Sales
However the peformance issue occurs when the below attributes are selected has it has huge data.
product number,price,Sales.
I check on the profiler and the duration time is high for the query.
select product number,price, sum(Sales)
Please advise for any solution.