Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hey all,
So I have a dashboard which looks at a spend per client.
Now I have mad a conditional column because some clients have an additional charge, and then I do a measure.
Total Charge = SUM('Billing'[Margin]) + SUM('Billing'[Charge])
Now what I have is that all clients total charge comes out as it should, but one clients total is way higher than it should be, and I have found out that it's because that client is appearing three times in the table, and then has three values added against them so instead of their margin been 950 it's 2,850.
Now my question is, is there a way I can do a measure or something to only tell PowerBi to look at the one figure and not add up every margin agaist that client? because it will always be 950
Solved! Go to Solution.
If it could change, the way I would do it is to break the table into two. One for transactions (charges) and one for characteristics (clients and margin). Then join the two by client or other unique key and viola!
The calculate could be adjusted to account for things like varying margin based on time period etc.
You have any dummy/sample data to share?
I imagine it looks like this, but could be way off base. Client d is your offender:
Client | Margin | Charge |
a | 100 | 700 |
b | 200 | 150 |
c | 300 | 100 |
d | 950 | 200 |
d | 950 | 300 |
Do none of the other Clients have repeating rows?
And no other client has repeating rows who have a margin. But it could be an issue in future months, so I need some sort of calc that only grabs the one margin no matter how many rows?
If it could change, the way I would do it is to break the table into two. One for transactions (charges) and one for characteristics (clients and margin). Then join the two by client or other unique key and viola!
The calculate could be adjusted to account for things like varying margin based on time period etc.
Your example is spot on, so when I tell it to add the margin and add the cost onto that is grabs both margins, and I just want the one.
And there is only the one client that appears more than once? All others are unique?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
80 | |
76 | |
61 | |
36 | |
32 |
User | Count |
---|---|
91 | |
60 | |
59 | |
49 | |
45 |