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.
Hi all
I created a simple dax measure that sums cell values and divides all of them by 70.
I am getting results with over 100% which make no sense. I made sure I selected dont summarize so it wouldnt affect but still cant get it right.
Dax is:
Q/FS Total DAX =
var _ingredients =
(
SUM('Suppliers Compliance'[Audit Score (25%)]) +
SUM('Suppliers Compliance'[CAP Score (5%)]) +
SUM('Suppliers Compliance'[QF Score (20% Ing/ 30% pack)]) +
SUM('Suppliers Compliance'[Score Threats (10%)]) +
SUM('Suppliers Compliance'[Score Analysis (10%)])
)
/
70
var _package =
(
SUM('Suppliers Compliance'[Audit Score (25%)]) +
SUM('Suppliers Compliance'[CAP Score (5%)]) +
SUM('Suppliers Compliance'[QF Score (20% Ing/ 30% pack)]) +
SUM('Suppliers Compliance'[Score Threats (10%)])
)
/
70
return
IF(SELECTEDVALUE ('Suppliers Compliance'[Type]) = "Ingredients" , _ingredients , _package)
Some values over 100% are
I attach pbix
https://1drv.ms/u/s!ApgeWwGTKtFdhjK8-nxxMvBkrAEq?e=BltJtf
Thanks for the help!
Solved! Go to Solution.
Hi @o59393 ,
I have checked your PBI file, that's because you have duplicated values for some IDs, so you can't only use SUM to calculate the KPI.
Please try to use below measure to instead of:
Q/FS Total DAX =
var _ingredients =
(
SUM('Suppliers Compliance'[Audit Score (25%)])/ COUNT('Suppliers Compliance'[Id]) +
SUM('Suppliers Compliance'[CAP Score (5%)])/ COUNT('Suppliers Compliance'[Id]) +
SUM('Suppliers Compliance'[QF Score (20% Ing/ 30% pack)])/ COUNT('Suppliers Compliance'[Id]) +
SUM('Suppliers Compliance'[Score Threats (10%)])/ COUNT('Suppliers Compliance'[Id]) +
SUM('Suppliers Compliance'[Score Analysis (10%)])/ COUNT('Suppliers Compliance'[Id])
)
/
70
var _package =
(
SUM('Suppliers Compliance'[Audit Score (25%)])/ COUNT('Suppliers Compliance'[Id]) +
SUM('Suppliers Compliance'[CAP Score (5%)]) / COUNT('Suppliers Compliance'[Id])+
SUM('Suppliers Compliance'[QF Score (20% Ing/ 30% pack)]) / COUNT('Suppliers Compliance'[Id])+
SUM('Suppliers Compliance'[Score Threats (10%)])/ COUNT('Suppliers Compliance'[Id])
)
/
70
return
IF(SELECTEDVALUE ('Suppliers Compliance'[Type]) = "Ingredients" , _ingredients , _package)
Aiolos Zhao
@o59393 , hope above solution has resolved you issue
Hi @amitchandak and @Anonymous
Apologies for my delay, it worked perfectly.
Appreciate your time and help.
Have a nice weekend!
Hi @o59393 ,
I have checked your PBI file, that's because you have duplicated values for some IDs, so you can't only use SUM to calculate the KPI.
Please try to use below measure to instead of:
Q/FS Total DAX =
var _ingredients =
(
SUM('Suppliers Compliance'[Audit Score (25%)])/ COUNT('Suppliers Compliance'[Id]) +
SUM('Suppliers Compliance'[CAP Score (5%)])/ COUNT('Suppliers Compliance'[Id]) +
SUM('Suppliers Compliance'[QF Score (20% Ing/ 30% pack)])/ COUNT('Suppliers Compliance'[Id]) +
SUM('Suppliers Compliance'[Score Threats (10%)])/ COUNT('Suppliers Compliance'[Id]) +
SUM('Suppliers Compliance'[Score Analysis (10%)])/ COUNT('Suppliers Compliance'[Id])
)
/
70
var _package =
(
SUM('Suppliers Compliance'[Audit Score (25%)])/ COUNT('Suppliers Compliance'[Id]) +
SUM('Suppliers Compliance'[CAP Score (5%)]) / COUNT('Suppliers Compliance'[Id])+
SUM('Suppliers Compliance'[QF Score (20% Ing/ 30% pack)]) / COUNT('Suppliers Compliance'[Id])+
SUM('Suppliers Compliance'[Score Threats (10%)])/ COUNT('Suppliers Compliance'[Id])
)
/
70
return
IF(SELECTEDVALUE ('Suppliers Compliance'[Type]) = "Ingredients" , _ingredients , _package)
Aiolos Zhao
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 |
---|---|
124 | |
79 | |
49 | |
38 | |
37 |
User | Count |
---|---|
196 | |
80 | |
70 | |
51 | |
42 |