cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
paragchapre1
Helper I
Helper I

Calculate SUM in matrix not showing correct values

Hello,

 

I am trying to calculate the sum of numbers in Matrix but it is not showing correct values.

When I select department values then It is showing wrong values.

 

paragchapre1_0-1605525142211.png

 

Below is my PBIX file. I want to calculate the SUM of FTE values as per department.

 

FTE calculate PBIX 

 

1 ACCEPTED SOLUTION
V-pazhen-msft
Community Support
Community Support

@paragchapre1 

If you want the sum of FTE in the total, try replace the maxx to sumx.

 

Total FTE = if(HASONEVALUE(Sickness[PersonnelNumber]),SUM(Sickness[FTE]),SUMX(SUMMARIZE(VALUES(Sickness[PersonnelNumber]),Sickness[PersonnelNumber],"ABCD",SUM(Sickness[FTE])),[ABCD]))
 
sum in total.JPG

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
V-pazhen-msft
Community Support
Community Support

@paragchapre1 

If you want the sum of FTE in the total, try replace the maxx to sumx.

 

Total FTE = if(HASONEVALUE(Sickness[PersonnelNumber]),SUM(Sickness[FTE]),SUMX(SUMMARIZE(VALUES(Sickness[PersonnelNumber]),Sickness[PersonnelNumber],"ABCD",SUM(Sickness[FTE])),[ABCD]))
 
sum in total.JPG

Paul Zheng _ Community Support Team
If this post helps, please Accept it as the solution to help the other members find it more quickly.

View solution in original post

amitchandak
Super User IV
Super User IV

@paragchapre1 , Try the measure like

Total FTE = SUMx(SUMMARIZE(Sickness,Sickness[Department],Sickness[Name],"_1",if(HASONEVALUE(Sickness[PersonnelNumber]),SUM(Sickness[FTE]),MAXX(SUMMARIZE(VALUES(Sickness[PersonnelNumber]),Sickness[PersonnelNumber],"ABCD",SUM(Sickness[FTE])),[ABCD]))),[_1])


Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

March Update

Check it Out!

Click here to read more about the March 2021 Updates!

secondImage

The largest Power BI virtual conference

100+ sessions, 100+ speakers, Product managers, MVPs, and experts. All about Power BI. Attend online or watch the recordings.

secondImage

Experience what’s next for Power BI

See the latest Power BI innovations, updates, and demos from the Microsoft Business Applications Launch Event.