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

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
RogerSteinberg
Post Patron
Post Patron

How to toggle between % and absolute values in a matrix

Hi everyone,

 

Simply put I would like to toggle between my absolute values in a table/matrix to % as a column or row or grand total.

2019-03-14 14_43_57-Book1 - Excel.png

 

How can I achieve this ?

 

Thank you

1 ACCEPTED SOLUTION
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @RogerSteinberg 

 

You may create a slicer table like below.Then create a measure to get the value.

Value_New =
IF (
    ISFILTERED ( Slicer[Type] ),
    SUM ( 'Table'[Value] )
        / CALCULATE ( SUM ( 'Table'[Value] ), ALLEXCEPT ( 'Table', 'Table'[date] ) ),
    SUM ( 'Table'[Value] )
)

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @RogerSteinberg 

 

You may create a slicer table like below.Then create a measure to get the value.

Value_New =
IF (
    ISFILTERED ( Slicer[Type] ),
    SUM ( 'Table'[Value] )
        / CALCULATE ( SUM ( 'Table'[Value] ), ALLEXCEPT ( 'Table', 'Table'[date] ) ),
    SUM ( 'Table'[Value] )
)

1.png

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors
Top Kudoed Authors