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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
ressul
Regular Visitor

Calculate Variance on Measures in Matrix table

Hi all,

I have a matrix table Ilike below:

                          Company 1                 Company2

                      2021        2022            2021         2022

MEASURE1      x%          x%                x%             x%

MEASURE2      x%         x%                 x%            x%

MEASURE3      x%         x%                x%             x%

 

And I wish to add a variance column so the table will become like:

                               Company 1                                         Company2

                      2021        2022        YoY Var               2021         2022          YoY Var

MEASURE1      x%          x%             y%                     x%             x%               y%

MEASURE2      x%         x%              y%                     x%            x%                y%

MEASURE3      x%         x%              y%                     x%             x%               y%

 

Is this possible? I know a Measure can not be shown in Column so can't think of any way to create this variance column.

I'm thinking to convert these measures into a column (i.e. each measure becomes a row of this column), not sure if it's possible via DAX?

 

Thank you in advance!

 

4 REPLIES 4
v-rongtiep-msft
Community Support
Community Support

Hi @ressul ,

Could you please provide the formulas about measures so that I can convert it to column form for you.

If it is possible, please provide your pbix file without privacy inforamtion and desired output.

 

Best Regards

Community Support Team _ Polly

 

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

Whitewater100
Solution Sage
Solution Sage

Hi:

They have changed some  formatting options. If you go to "Values" you can accomplish mesures on row. Please see image. Thanks..

Whitewater100_0-1653221808278.png

 

tamerj1
Super User
Super User

Hi @ressul 

you can use the columns subtotal to disply this value by editing the code of the same measures 

Thanks @tamerj1 . Are you able to show how exactly this can be done?

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors