Forum Discussion
Summing Multiple New Meassures
Hello, Create a calculated column for the rate for each product.
RateProduct=Switch('Table1'[Ad Request Size]);1;25;2;20;3;40;4;50)
Create a measure:
TotalProjectedRevenue=Sumx('Table1';'Table1'[ForecastedImpressions]*'Table1'[RateProduct])
Sorry to be so dense but I've never done calculated columns before and I'm poor at DAX at the moment. As I'm sure my posts show I'm abit of a novice working towards more proficiency. I've got a tab in my excel report (the data source for this PowerBI report) named Creative Map. This tab is to map the ad request sizes (one of which shows multiple possibilities) to new sizes. In this table I also have rates for each of these items.
Am I able to use these rates in this table and apply them to the other table which has the forecasted sales of each of these items?
- v-ljerr-msft9 years agoMicrosoft Employee
Hi cshowe80,
Am I able to use these rates in this table and apply them to the other table which has the forecasted sales of each of these items?
Yes, you are. First you need to create a relationship between these two tables, then you should be able to use RELATED Function (DAX) to create the measure like below.
TotalProjectedRevenue = SUMX ( 'SalesTable'; 'SalesTable'[ForecastedImpressions] * RELATED ( 'Creative Map'[RateProduct] ) )Regards