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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Create a custom matrix table based on another matrix table

Hello

I created an array table like this:

22222.png

Now, I'd like to use the values and apply a formula. Then display this in another matrix table with the same column name and row name. For example (first row, two first dates): (36*100/323) - 100 to -88.9% and so on...

My question is, how can I use the table value and apply the formula. Then display the result in another table?

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

You can also create a calculated column. Something like that:

pbix attached

 

Value3 =
VAR val =
    SUM ( 'Table'[Value] )
VAR Next_value =
    CALCULATE (
        MAX ( 'Table'[Value] ),
        'Table',
        'Table'[Category] = EARLIER ( 'Table'[Category] ),
        'Table'[Date]
            = EARLIER ( 'Table'[Date] ) + 1
    )
RETURN
    Next_value * 100 / 'Table'[Value] - 100

 

62.png

Best Regards,
Community Support Team _ Eason
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

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi , @Anonymous 

You can also create a calculated column. Something like that:

pbix attached

 

Value3 =
VAR val =
    SUM ( 'Table'[Value] )
VAR Next_value =
    CALCULATE (
        MAX ( 'Table'[Value] ),
        'Table',
        'Table'[Category] = EARLIER ( 'Table'[Category] ),
        'Table'[Date]
            = EARLIER ( 'Table'[Date] ) + 1
    )
RETURN
    Next_value * 100 / 'Table'[Value] - 100

 

62.png

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

mwegener
Most Valuable Professional
Most Valuable Professional

Hi @Anonymous ,

 

The post is double.
Please look at this.

https://community.powerbi.com/t5/Desktop/Create-customised-matrix-table-based-on-another-matrix-table/m-p/1067744/highlight/true#M497474

 

Did I answer your question?
Please mark my post as solution, this will also help others.
Please give Kudos for support.

Marcus Wegener works as Full Stack Power BI Engineer at BI or DIE.
His mission is clear: "Get the most out of data, with Power BI."
twitter - LinkedIn - YouTube - website - podcast - Power BI Tutorials


Helpful resources

Announcements
Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan NL Carousel

Fabric Community Update - January 2025

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