Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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:
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?
Solved! Go to Solution.
You can refer to the following solution
Sample data
Week table
Relationship
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
Output
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.
You can refer to the following solution
Sample data
Week table
Relationship
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
Output
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.
it is possible.
sql bi have all the patterns you need i suggest you use this link, https://www.daxpatterns.com/week-related-calculations/
Proud to be a Super User!
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
84 | |
76 | |
73 | |
42 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
42 |