Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Looking to see how I can create a measure that is able to track the revenue of a Client if it occurs in either column.
For example I would like to record the revenue of Client A on whether if they were a billing company or end company.
For example, company A was a billling twice ($400) and End Company once ($200)
So I would like a measure that shows Company A = $600.
Thank you,
Solved! Go to Solution.
Hi,
You may download my PBI file from here.
Hope this helps.
Hi,
You may download my PBI file from here.
Hope this helps.
Thanks Ashish! that works!
You are welcome.
You are welcome JohnYEG
@JohnYEG
This measure should work for you:
Revenue A =
VAR __CO = "A"
RETURN
CALCULATE(
SUM(Table[Revenue]),
(Table[Billing Company] = __CO || Table[End Company] = __CO)
)
⭕ Subscribe and learn Power BI from these videos
⚪ Website ⚪ LinkedIn ⚪ PBI User Group
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?
Im not sure if it's what you want, but by what I understood, it's going to work rsrs
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.
Hi try this it sould work
Thank you so much!!
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
73 | |
72 | |
37 | |
31 | |
26 |
User | Count |
---|---|
96 | |
84 | |
43 | |
40 | |
35 |