Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowGet inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.
there are 2 table table first is correct and 2nd is showing incorrect result when calculation in power bi i am using below dax formula
Solved! Go to Solution.
Hi, @proavinash
Thanks for reaching out to the Microsoft fabric community forum.
Regarding the issue you raised, my solution is as follows:
The main reason for the issue is that the calculated column automatically uses the SUM aggregation method, and there is a particular column used as a filter in the visual object. This filter in the visual object does not meet our requirements. As shown in my test data, the calculated results do not meet our needs:
You can try the following three solutions:
1.Use the following calculated column and change the aggregation method to MAX:
Column =
DIVIDE (
CALCULATE (
SUM ( 'RCHGTarget'[Ach_Jan251] ),
ALLEXCEPT ( 'RCHGTarget', 'RCHGTarget'[PARTICULAR] )
),
CALCULATE (
SUM ( 'RCHGTarget'[Jan'25] ),
ALLEXCEPT ( 'RCHGTarget', 'RCHGTarget'[PARTICULAR] )
)
)
2.Use visual object calculations:
However, this can only be used for that specific visual object and cannot be called later.
3.Use the following measure:
Measure = DIVIDE(SUM(RCHGTarget[Ach_Jan251]),SUM('RCHGTarget'[Jan'25]))
This solution is the most effective, as the measure depends on context changes.
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
after deep study with you solution i found its working , when used you pbix file as referenece.
Hi, @proavinash
I am glad that my answer could help you, and I appreciate you accepting my answer as the solution. This recognition of my efforts also helps others in the community with similar issues find solutions more quickly.
If you encounter any problems in the future, feel free to share them again.
Have a great day!
Best Regards,
Leroy Lu
Thanks to reply, but not working as i want , please don't considere it as negative , please understand my problem
i have 2 table , 1 is Salesdump, and other is RCHGTarget,
Salesdump table has all dump related fileds including sales value and quantity,
and Target table has Target,
how i formulation of tracking,
i prepare a unique filed in both table by concatinate, Channel-Region-Zone etc. like below example.
Concatch |
Domestic-Project-COMM-North-NCR |
Domestic-Project-COMM-North-RAJASTHAN |
Domestic-Project-COMM-North-UP East |
Domestic-Project-COMM-North-UP NORTH |
Domestic-Project-COMM-North-Up West & Uk |
Domestic-Project-COMM-East-JOB |
Domestic-Project-COMM-East-NE |
Domestic-Project-COMM-East-WB |
in which target already inbuilt not formulated , and sales achievement is formulated as give in formula
and after this i have applied this in matrix , and achievement % , and growth % by calculation seperatly as given above formula.
so the indivial ach % & growth % near about correct but total not correct.
full table below.
Hi, @proavinash
Thanks for reaching out to the Microsoft fabric community forum.
Regarding the issue you raised, my solution is as follows:
The main reason for the issue is that the calculated column automatically uses the SUM aggregation method, and there is a particular column used as a filter in the visual object. This filter in the visual object does not meet our requirements. As shown in my test data, the calculated results do not meet our needs:
You can try the following three solutions:
1.Use the following calculated column and change the aggregation method to MAX:
Column =
DIVIDE (
CALCULATE (
SUM ( 'RCHGTarget'[Ach_Jan251] ),
ALLEXCEPT ( 'RCHGTarget', 'RCHGTarget'[PARTICULAR] )
),
CALCULATE (
SUM ( 'RCHGTarget'[Jan'25] ),
ALLEXCEPT ( 'RCHGTarget', 'RCHGTarget'[PARTICULAR] )
)
)
2.Use visual object calculations:
However, this can only be used for that specific visual object and cannot be called later.
3.Use the following measure:
Measure = DIVIDE(SUM(RCHGTarget[Ach_Jan251]),SUM('RCHGTarget'[Jan'25]))
This solution is the most effective, as the measure depends on context changes.
Please find the attached pbix relevant to the case.
Best Regards,
Leroy Lu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code FABINSIDER for a $400 discount!
Check out the February 2025 Power BI update to learn about new features.