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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
clem312
Resolver I
Resolver I

TOTAL without Filter

Hi,

 

I have a measure the sum weights for unique ID. It works fine in my matrix by categories.

My problem is that I need the TOTAL of the weight for all categories in order to make a percentage for each category.

_Q72_Like = SUMX(Values(Q72[ID]), calculate(max(Q72[WEIGHT])))
_Q72_Total = SUMX(VALUES(Q72[ID]), CALCULATE(MAX(Q72[WEIGHT]), ALL(Q72[Q72_correspondance.Q72_lib])))
The last column _Q72_Total should display 101 698 on all cells.
What am I doing wrong ?

 

clem312_0-1630599717174.png

 

2 ACCEPTED SOLUTIONS
parry2k
Super User
Super User

@clem312 try this measure:

 

_Q72_Total = 
CALCULATE
(
    SUMX (
        VALUES ( Q72[ID] ), 
        [_Q72_Like] 
    ),
    ALL ( Q72[Q72_correspondance.Q72_lib] )
)

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

View solution in original post

PaulDBrown
Community Champion
Community Champion

How about:

_Q72_Total = CALCULATE ([_Q72_Kike], ALL(Q72[Q72_correspondance.Q72_lib]))





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






View solution in original post

8 REPLIES 8
PaulDBrown
Community Champion
Community Champion

How about:

_Q72_Total = CALCULATE ([_Q72_Kike], ALL(Q72[Q72_correspondance.Q72_lib]))





Did I answer your question? Mark my post as a solution!
In doing so, you are also helping me. Thank you!

Proud to be a Super User!
Paul on Linkedin.






@PaulDBrown 

Works fine too Paul 👍

Thank you.

parry2k
Super User
Super User

@clem312 try this measure:

 

_Q72_Total = 
CALCULATE
(
    SUMX (
        VALUES ( Q72[ID] ), 
        [_Q72_Like] 
    ),
    ALL ( Q72[Q72_correspondance.Q72_lib] )
)

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

@parry2k 

 

Perfect. Thank you. 👍

parry2k
Super User
Super User

@clem312 interesting, share pbix file with sample data on how your tables are structured to provide the solution.

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Below you can find them

PBIX File 

Data Extract 

parry2k
Super User
Super User

@clem312 try this:

 

_Q72_Total = SUMX(ALL(Q72[ID]), [_Q72_Like] )

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

 

 



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

Hi @parry2k 

 

No. It does not change :

clem312_0-1630601277291.png

 I also tried 

_Q72_Total = SUMX(ALL(Q72[Q72_correspondance.Q72_lib]), [_Q72_Like] ) as Q72_lib is the category field
but it display a much higher number than 101 698 as it should be :

 

clem312_1-1630601358527.png

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors