Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 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.
Hello-
I am trying to conditionally format values in cells of a matrix visual based on the summarization of the entire range of cells. In my specific case the columns of the matrix visual are weeks of the year which i want to compare vs. the Standard Deviation across the entire range of data and color code highlight if the value in the cell is outside the stad dev.
The measure that ive created to calculate the std dev across the range is:
stddv_time_bound = CALCULATE(
STDEVX.S(
SUMMARIZE( table1, table1[week], "Change",
CALCULATE(
SUM(table1[sum(column_values)]), table1[column_names] = "forecast 1")
-
CALCULATE(
SUM(table1[sum(column_values)]), table1[column_names] = "forecast2")
),
[Change]),
DATESINPERIOD(table1[week], TODAY(), 12, MONTH), All(table1[week]))
And i use this in the below measure to create the color coding.
Color Code = SWITCH(TRUE(),
[Change Forecast] >= [stddev_time_bound],"#de6a73",
"#B7e8a2")
The issue is that the std. dev measure is applied in the visual against only each indidual week which returns NaN due to no variability.
IS there a way to remove the inherent filter applied by the visual?
Thanks in advance for any help
Solved! Go to Solution.
Read about HASONEVALUE and REMOVEFILTERS
Very helpful. Thank you
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
145 | |
73 | |
63 | |
52 | |
51 |
User | Count |
---|---|
208 | |
91 | |
62 | |
59 | |
56 |