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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
cylo
Frequent Visitor

Summing a measure

Hi, 

 

I have followed the guidance raised in this post to create a measure that calculates the covariance using the volatility and correlation tables. 

 

If for some apparent reason I need to sum up the covariance measure to show 1x1 value so that it can fit on a card visual (look at images below), may I know how it can be done? Any help is much appreciated 🙂

 

i.e., Sum up all the values in covariance values in the matrix

Covariance.png

So that the summed value can be shown in the card visual

total_cov.png

1 ACCEPTED SOLUTION

Hi,

Try this measure

Measure = SUMX(GENERATE(ALL('rows'[id]),ALL('columns'[id])),[covariance])

Hope this helps.

Ashish_Mathur_0-1742786914698.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
danextian
Super User
Super User

Hi @cylo 

What is a 1x1 value? The value in the card alreay appears to be the total of individual cells in your matrix.





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

The value of 2.38% is hardcoded (as a measure). I wish to sum up the values in the matrix using a measure to get that value at the end of the day. 

Ashish_Mathur
Super User
Super User

Hi,

Share the download link of the PBI file.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

The sample file has been uploaded here

Hi,

Try this measure

Measure = SUMX(GENERATE(ALL('rows'[id]),ALL('columns'[id])),[covariance])

Hope this helps.

Ashish_Mathur_0-1742786914698.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Thanks so much @Ashish_Mathur 🙂

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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