The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi,
I have the following formula:
Solved! Go to Solution.
Thanks for the reply from lbendlin and sjoerdvn.
Hi @365_PBI_GUY ,
If we look at the problem itself, total error is common. The totals are calculated independently of the context of the totaling row, you can try the following formula:
Measure2 =
IF (
HASONEVALUE ( 'Revenue'[Revenue] ),
DIVIDE ( SUM ( 'Profit'[Profit] ), SUM ( 'Revenue'[Revenue] ), 0 ),
DIVIDE (
SUMX ( ALL ( 'Profit' ), 'Profit'[Profit] ),
SUMX ( ALL ( 'Revenue'[Revenue] ), 'Revenue'[Revenue] ),
0
)
)
I also found some link about incorrect total for you, which I hope will help you out:
Why Power BI totals might seem inaccurate - SQLBI
Dealing with Measure Totals - Microsoft Fabric Community
Best Regards,
Zhu
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks for the reply from lbendlin and sjoerdvn.
Hi @365_PBI_GUY ,
If we look at the problem itself, total error is common. The totals are calculated independently of the context of the totaling row, you can try the following formula:
Measure2 =
IF (
HASONEVALUE ( 'Revenue'[Revenue] ),
DIVIDE ( SUM ( 'Profit'[Profit] ), SUM ( 'Revenue'[Revenue] ), 0 ),
DIVIDE (
SUMX ( ALL ( 'Profit' ), 'Profit'[Profit] ),
SUMX ( ALL ( 'Revenue'[Revenue] ), 'Revenue'[Revenue] ),
0
)
)
I also found some link about incorrect total for you, which I hope will help you out:
Why Power BI totals might seem inaccurate - SQLBI
Dealing with Measure Totals - Microsoft Fabric Community
Best Regards,
Zhu
Community Support Team
If there is any post helps, then please consider Accept it as the solution to help the other members find it more quickly.
You mention SUMX in the title, but there is no SUMX in your measure / formula ?
Please provide sample data that covers your issue or question completely, in a usable format (not as a screenshot).
Do not include sensitive information or anything not related to the issue or question.
If you are unsure how to upload data please refer to https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-...
Please show the expected outcome based on the sample data you provided.
Want faster answers? https://community.fabric.microsoft.com/t5/Desktop/How-to-Get-Your-Question-Answered-Quickly/m-p/1447...
User | Count |
---|---|
18 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
12 | |
9 | |
8 |