March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Hello,
I am trying to figure out if there is a way to use conditional formatting to go on the basis of the column, rather than the entirety of the matrix.
For example, when I use the Lowest value to Highest value format, it will compare the values of the whole table, when I’d like the conditional formatting to compare lowest to highest of only the values in columns.
Thank You for your help,
Solved! Go to Solution.
Conditional formatting applies to a range of values in a single column of your original table, when you create a Matrix visual using fields of the original table, all values come from this single column, thus conditional formatting goes on the entirety of the Matrix.
The feature you describe can’t be achievable in Power BI Desktop, you can submit a feature request in the Power BI ideas forum: https://ideas.powerbi.com/forums/265200 .
Thanks,
Lydia Zhang
To attain this objective, utilize conditional formatting that relies on the proportion of a measure's contribution to the overall total, rather than the raw measure itself. This ensures that the column formatting is determined by values always ranging between 0 to 1, as depicted in the image.
The dax for achieving this is as follows:
FYI this can be done in Tableau
I found this thread looking for the same conditional formatting color scale "per column".
I thought I was close using RankX to get the format key below, but that still didn't work.
I think that I've found an answer in this youtube video.. https://www.youtube.com/watch?v=wTRrskQzAHk
He brings it together at the end, and it looks to work in my scenario.
__PerMonthColorScale =
VAR SummaryTable =
CALCULATETABLE(
ADDCOLUMNS(
SUMMARIZE(
Forecasts,
Projection_Master[JOBNUMBER_I],
Forecasts[TargetMonth]
),
"CurrentProjection", [Current Projection]
),
ALLSELECTED('Job Summary')
)
VAR MaxValue =
MAXX(
SummaryTable,
[CurrentProjection]
)
VAR MinValue =
MINX(
SummaryTable,
[CurrentProjection]
)
VAR Range = MaxValue - MinValue
VAR Hue =
Round(
DIVIDE(
[Current Projection] - MinValue,
Range
) * 120,0)
VAR Color = "hsla(" & Hue & ", 100%, 50%, 1)"
RETURN
if (ISBLANK([Current Projection]),
BLANK(),
color
)
For anyone searching, the below works:
Formatting Measure =
RANKX (
ALLSELECTED ( Matrix Rows ),
[Matrix Measure],
[Matrix Measure],
ASC
)
I don't understand why the measure is in there twice, or what it's doing. But I know it works.
If you have a very narrow range of values, the highlighting effect won't be very pronounced.
If anyone else stumbles across this like me, I voted for this idea
Hello,
Does anyone know if there is already a solution for the question asked?
Thank you for your help,
I got around this by using the ALLEXCEPT() function a measure. This function will ignore all filters but one, so if you choose the column value as the exception you can use conditional formatting on a column basis.
@Anonymous I'm trying to figure this out as weel. Can you provide an example of how you managed to solve this by ALLEXCEPT?
Best,
Torben
Did anyone solve this issue?
Can you provide an example of how you did this?
Conditional formatting applies to a range of values in a single column of your original table, when you create a Matrix visual using fields of the original table, all values come from this single column, thus conditional formatting goes on the entirety of the Matrix.
The feature you describe can’t be achievable in Power BI Desktop, you can submit a feature request in the Power BI ideas forum: https://ideas.powerbi.com/forums/265200 .
Thanks,
Lydia Zhang
Hello Lydia,
I have a PBI dashboard where conditional formatting is being applied to a single column of a matrix. In this case, all dollar values < 0 are formatted as white text on red background. I inherited a dashboard and I am struggling to figure out how this is done. I'm totally lost as to how this is implemeted.
This is ridiculous, please add this feature.
Hello,
I am trying to figure out if there is a way to use conditional formatting to go on the basis of the column, rather than the entirety of the matrix.
For example, when I use the Lowest value to Highest value format, it will compare the values of the whole table, when I’d like the conditional formatting to compare lowest to highest of only the values in columns.
Thank You for your help,
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
90 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
70 | |
68 |