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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

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
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

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.