Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
mutaharbhatti
Regular Visitor

Dax Row Level Normalization/ Conditional Formatting Help

I want help to create 1 measure which can do both work so I can put it on the table and be able to drill up and drill down 

 

Hi, 

I have 2 Dax Measures which normalize the data between 0 to 1 so I can use them to create row-based conditional formatting.

 

1st Measure normalizes the data for only  Year and 2nd one normalizes data for only Quarters

 

I am attaching a .pbix file you can go through it to see my dax measures 

 

Thanks

 

 

Power Bi File 

https://www.dropbox.com/s/6lca1mcelm301tu/Power%20Bi%20Help.pbix?dl=0

 

mutaharbhatti_0-1680012986012.png

 

DAX Measure Used for Normalizing Quaterly  just Removed Quater from summary table and from allselected() to create yearly

 

Value Graient =
VAR summarytable = 
CALCULATETABLE(
ADDCOLUMNS
SUMMARIZE(Vol,
Vol[Product],Vol[Year],Vol[Quater]
),"values",[Values]),
ALLSELECTED(Vol[Year],Vol[quater])
)


Var MaxValue =
MAXX(summarytable,[values])


Var MinValue =
MINX(summarytable,[values])

VAR Range = MaxValue - MinValue

Var Hue =
ROUND(
DIVIDE([Values] - MinValue,
Range),2)

Return
Hue
0 REPLIES 0

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.