Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
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!!
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 23 | |
| 23 | |
| 20 | |
| 18 | |
| 14 |
| User | Count |
|---|---|
| 58 | |
| 53 | |
| 42 | |
| 30 | |
| 24 |