Forum Discussion
Anonymous
5 years agoNot applicable
Calculated column to attribute customer based on the
Hi I'm trying to solve the following problem: I have two tables in my data model: Dim Customer -> pink column denotes the effect I would like to achieve CustomerID CustomerEmail ...
lbendlin
Super User
5 years agoCustomerSubType =
var e=Customer[CustomerEmail]
var o=CALCULATE(count(Sales[SaleOrderID]),all(sales),Customer[CustomerEmail]=e,Customer[CustomerType]="wholesaler")
return switch (o,0,"B2C","B2B")