Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Don'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.

Reply
o59393
Post Prodigy
Post Prodigy

KPI incorrectly gives over 100%

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

 

sum.PNG

 

I attach pbix 

 

https://1drv.ms/u/s!ApgeWwGTKtFdhjK8-nxxMvBkrAEq?e=BltJtf

 

Thanks for the help!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

@o59393 , hope above solution has resolved you issue

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

Hi @amitchandak  and @Anonymous 

 

Apologies for my delay, it worked perfectly.

 

Appreciate your time and help.

 

Have a nice weekend!

Anonymous
Not applicable

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

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

Find out what's new and trending in the Fabric community.