Forum Discussion
Create a measure from summing from two separate columns (if client occurs in either column)
- 4 years ago
Hi,
You can create measures and manipulate them, like:
Measure 1= Calculate(sum(column[revenue]), Billing company = "A")
Measure 2= Calculate(sum(column[revenue]), Billing company = "B")
Measure 3= Calculate(sum(column[revenue]), Billing company = "C")
And then make another measures using Measure1, 2 and 3.
Regards!
Are you saying that then I would another measure
Measure 1 End Company A = Calculate(sum(column[revenue]), End Company = "A")
then I would add Measure 1 + Measure 1 End Company A = total revenue of Company A?
- HenriqueReis4 years ago
Resolver I
Im not sure if it's what you want, but by what I understood, it's going to work rsrs
- JohnYEG4 years agoFrequent Visitor
ah okay, for that example company A, I can't just add those 2 columns together. What I would like is how do we add a condition where I don't double count. For example on Contract 3, Company A is both Billing and End but I only want to count it once.
- Anonymous4 years agoNot applicable
Hi try this it sould work
total revenue =var activproj=SELECTEDVALUE(Billing[end company])var test=calculate(sum(Billing[revenue]),(Billing[billing company]=activproj))var test2=if(AND(SELECTEDVALUE(Billing[billing company])<>activproj,SELECTEDVALUE(Billing[end company])=activproj),SUM(Billing[revenue]))returntest+test2