The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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