Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I'm having a bit of a frustrating problem with a visual in PowerBi.
This is one of our cases, usually charged hours and time costs are filled but this simple case only has Costs.
I'm trying to get Net Profit to show it's actual total rather than the total subtracted from Amount Billed as we can have multiple cases together and we're measuring profitability.
The formula should be simple:
Solved! Go to Solution.
I managed to figure it out. I merged and the columns from the different sources in to the same table. However, I then had to clean up duplicates of values using this:
Hi @Shaunes001
Please try this:
Here I create a set of sample:
Table:
Then add a measure:
MEASURE =
SUMX ( 'Table', [Amount Billed] - [Costs] )
The result is as follow:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
I managed to figure it out. I merged and the columns from the different sources in to the same table. However, I then had to clean up duplicates of values using this:
Hi all,
Just to clear some details up. This is all in a visual, the details of each column is coming from different queries, for example amount billed comes from Sage, Costs are from a SharePoint list and the Case ID is from CRM. We use the Case ID as a common lynch pin data between each.
The calculation itself works perfectly fine and does everything it needs to do, but the total at the bottom shows the total of the calcualtion, not the calculation of the column like any other summary.
Hello @Shaunes001 ,
You can try the below measure..
If(Hasonefilter(CaseID),
[Amount Billed]-[Costs],
Sumx(Values(CaseID),
[Amount Billed]-[Costs]))
If you find this helpful , please mark it as solution and Your Kudos are much appreciated!
Thank You
Dharmendar S
Hi Dharmendar,
I tried the formula you suggested but sadly I have the same result:
The total is still showing the calculation and not the total for the column
Hello @Shaunes001 ,
Sorry..Please try the below measure..
If(Hasonefilter(CaseID),
[Amount Billed]-[Costs],
Sumx(Values(CaseID),
[Net Profit]))
If you find this helpful , please mark it as solution and Your Kudos are much appreciated!
Thank You
Dharmendar S
Sorry Dharmendar, I seem to be getting the same result. As mentioned, this is purely a visual and not a table, each column is coming from different sources. The calculation works as intended but the total is not correct.
Please share some more details, like how is build amount billed measure
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
133 | |
76 | |
53 | |
38 | |
37 |
User | Count |
---|---|
202 | |
80 | |
71 | |
55 | |
48 |