Forum Discussion
cn4422
2 years agoHelper V
Create a relationship between Fact Table Values and Measure Values
Hi, I have attached a screenshot of what I would like to accomplish. The idea is to create CPL (Cost-per-Lead) for different countries and display them over a certain time period. I have ...
- 1 year agoCPL FB =SWITCH(SELECTEDVALUE(Countries[Country]),"DE",DIVIDE([Sum Spend DE FB],[Sum Leads DE FB],0),"AT",DIVIDE([Sum Spend AT FB],[Sum Leads AT FB],0))
lbendlin
1 year agoSuper User
In that case you are indeed staring down the barrel of having to use the SWITCH statement 17 times.
cn4422
1 year agoHelper V
lbendlin wrote:In that case you are indeed staring down the barrel of having to use the SWITCH statement 17 times.
You are awesome - thank you so much! It's working exactly as I had in mind! 😍
(The downside with 17 countries is the performance, it's taking ages to load the visual 😁)