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
Jason_Auburn
Helper I
Helper I

Adding Up Down Arrows to matrix/table

Hi

 

I have a number of matrix tables in a report, i'd like to add dynamic arrows to show an increase/decrease based on the current week vs the previous week. 

 

Sample of my matrix: 

 

Jason_Auburn_0-1699273732070.png

 

On each row I want to add at the end if there was an increase or decrease for example between week 45 vs week 44. 

Is this a possibility?

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Jason_Auburn 

You can refer to the following solution

Sample data 

vxinruzhumsft_0-1699422037586.png

Week table

vxinruzhumsft_1-1699422054928.png

Relationship

vxinruzhumsft_2-1699422081835.png

 

1.Create a measure

Measure =
VAR _pre =
    CALCULATE (
        SUM ( 'Table'[Value] ),
        'Table (2)'[Week]
            = SELECTEDVALUE ( 'Table (2)'[Week] ) - 1
    )
RETURN
    SWITCH (
        TRUE (),
        SUM ( 'Table'[Value] ) < _pre, 1,
        SUM ( 'Table'[Value] ) = _pre, 2,
        SUM ( 'Table'[Value] ) >= _pre, 3
    )

2.Then put it to the conditional formatting of the value in the matrix

vxinruzhumsft_3-1699422253187.png

vxinruzhumsft_4-1699422270334.png

 

Output

vxinruzhumsft_5-1699422289497.png

Best Regards!

Yolo Zhu

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
Anonymous
Not applicable

Hi @Jason_Auburn 

You can refer to the following solution

Sample data 

vxinruzhumsft_0-1699422037586.png

Week table

vxinruzhumsft_1-1699422054928.png

Relationship

vxinruzhumsft_2-1699422081835.png

 

1.Create a measure

Measure =
VAR _pre =
    CALCULATE (
        SUM ( 'Table'[Value] ),
        'Table (2)'[Week]
            = SELECTEDVALUE ( 'Table (2)'[Week] ) - 1
    )
RETURN
    SWITCH (
        TRUE (),
        SUM ( 'Table'[Value] ) < _pre, 1,
        SUM ( 'Table'[Value] ) = _pre, 2,
        SUM ( 'Table'[Value] ) >= _pre, 3
    )

2.Then put it to the conditional formatting of the value in the matrix

vxinruzhumsft_3-1699422253187.png

vxinruzhumsft_4-1699422270334.png

 

Output

vxinruzhumsft_5-1699422289497.png

Best Regards!

Yolo Zhu

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

 

vanessafvg
Super User
Super User

it is possible.

 

  1. you need a date table
  2. calculate a this weeks measure
  3. calculate the previous weeks value
  4. compare the measures and use conditional formatting to provide how the arrows based on the compare result

 

sql bi have all the patterns you need i suggest you use  this link, https://www.daxpatterns.com/week-related-calculations/





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.