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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
Lancelot
Frequent Visitor

Use total from a matrix table in a measure

Hi

 

Is there a way to use the auto calculated total value from a matrix table in a new measure?

 

Lancelot_0-1673863111729.png

This is the value generated. How do I refer to it? Thanks

 

1 ACCEPTED SOLUTION
Idrissshatila
Super User
Super User

Hello @Lancelot ,

 

You could include it in the new measure as a variable and use it.

Refer to this link https://learn.microsoft.com/en-us/dax/best-practices/dax-variables

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




View solution in original post

2 REPLIES 2
v-xinruzhu-msft
Community Support
Community Support

Hi @Lancelot 

You can use sumx ()

e.g In the following matrix visual:

vxinruzhumsft_0-1673938501409.png

We substract the num "42" in Total, then we can create the following measure:

Measure = SUMX(FILTER(ALLSELECTED('Table'),[True/False]=TRUE()),[Order])

 

Best Regards!

Yolo Zhu

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Idrissshatila
Super User
Super User

Hello @Lancelot ,

 

You could include it in the new measure as a variable and use it.

Refer to this link https://learn.microsoft.com/en-us/dax/best-practices/dax-variables

 

If I answered your question, please mark my post as solution, Appreciate your Kudos 👍

 

Follow me on Linkedin



Did I answer your question? Mark my post as a solution! Appreciate your Kudos
Follow me on LinkedIn linkedIn
Vote for my Community Mobile App Idea

Proud to be a Super User!




Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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