Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
HI Team,
I am trying to do conditional formatting in my matrix on row hierarchy.
the formatting is such each row has its own scale based on min and max value in that trow.
I am getting the correct output but when i drill down to next level , all the values of above level looses its colour.
Can someone please help me with my problem.
I want for values and total both .
I tried to do formatting for values and total .. but it is asking for custom min and max values which i dont have.. each row is checking its min and max value and accordingly providing the colour scale.
ex:
country march 1 march2 march3
+Abc 2 54 12
+XYZ 0 50 1032
here for row 1: value 2 will have the light colur and 54 will have the darkest shade of the colour
for row 2: 0 will have the lightest and 1032 will have the darkest irrspective of the above row.
but when i do drill
country march 1 march2 march3
State
Abc 2 54 12
Pqr 0 10 8
QWE 2 44 4
+XYZ 0 50 1032
now states appear in colour but all the other country looses their colour(ex: XYZ).
I need colour formatting for both the levels simultaneously.
Please help me.
@vandna_R , Create a color measure like this. You have to create a few or create a few logics using isinscope or isfiltered
Use this measure in conditional formatting after using field option
Measure example
color =
switch ( true(),
FIRSTNONBLANK(Table[commodity],"NA") ="commodity1" && sum(Table[Value]) >500,"lightgreen",
FIRSTNONBLANK(Table[commodity],"NA") ="commodity2" && sum(Table[Value]) >1000,"lightgreen",
/// Add more conditions
"red"
)
https://www.kasperonbi.com/use-isinscope-to-get-the-right-hierarchy-level-in-dax/
Hi,
Thank you for your inputs i have checked oth the provided links
but my problem still persists
the issue is i am selecting date range in slicer the measure is not taking the highest value in that range and give it darkest colour.
rahter it is taking max value from the complete row as i have created calculated columns for that :
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
111 | |
94 | |
84 | |
67 |