Forum Discussion
cn4422
Helper V
2 years agoCreate 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 ...
- 2 years 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
Super User
2 years ago
cn4422
Helper V
2 years ago
lbendlin wrote:
Thanks again for your help - that's great, I can see not how you did it!
What if I want to add more countries... The idea is that the measure should only be placed in the row if the country-code is a match, if not, then it should simply be omitted.
What would be the best approach here?
My first idea was to maybe try it with a switch-statement?