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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.