Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code FABINSIDER for a $400 discount.
Register nowThe 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.
Hi All,
I have the below heat map scenario where I want to color gradiently per row in the matrix.
Per row the lowest value should have dark color and highest value should have light color.
Solved! Go to Solution.
Hi @ann33 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a calculated column.
rank =
IF (
'Table'[value] <> BLANK (),
RANKX (
FILTER (
'Table',
'Table'[date1] = EARLIER ( 'Table'[date1] )
&& 'Table'[value] <> BLANK ()
),
'Table'[value],
,
ASC,
SKIP
),
0
)
(3) Setting the Conditional Format and then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ann33 ,
According to your description, here are my steps you can follow as a solution.
(1) This is my test data.
(2) We can create a calculated column.
rank =
IF (
'Table'[value] <> BLANK (),
RANKX (
FILTER (
'Table',
'Table'[date1] = EARLIER ( 'Table'[date1] )
&& 'Table'[value] <> BLANK ()
),
'Table'[value],
,
ASC,
SKIP
),
0
)
(3) Setting the Conditional Format and then the result is as follows.
If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. Thank you.
Best Regards,
Neeko Tang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ann33 , Create measure with date column use in the column
Assume column date as Matrix column field
and Row Date as Matrix row field
Use this measure and do gradient formatting based on this measure
calculate(
datediff( minx(allselected(Table), Table[Col Date]) , Max(Table[Col Date]) , day) , removefilters(Table[Row date]))
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the February 2025 Power BI update to learn about new features.
User | Count |
---|---|
87 | |
81 | |
53 | |
38 | |
35 |