Hi,
in order to query a SSAS tabular model for a SSRS report, I need to calculate the sum of a numeric value present into a dimension table.
I try to explain the issue by a simplified model. Suppose to have the Sales (fact) table and the Products (dimension) table. In the products table I've a target sales value for each product. In the report I need to show for each product the sum of the sales amount and then in the same SSRS tablix the sum of the target sales value respect to all selected products. As the first step, inside the Sales table as a measure I've calculated the max of the target value respect to the single product, so I've the right target sales value repeated for each fact row. But as the second step, for each fact row I'd like to calculate the measure to show the sum of the target sales value respect to all selected products.
Any suggests to me, please? Thanks
F.e., if I have Product01 with target value equals to 2.500 and Product02 with target value equals to 1.300, for each fact row I'd like to have as sum of target value 2.500 + 1.300 = 3.800, where Product01 and Product02 are selected products.
Below a possible denormalized view of Sales table inside the tabular model: