Hello @nikahafiz,
Thank You for posting your query onto the Forum.
Do you want to highlight the max and min day for each year? Like this -
In that case, below is the measure alongwith the screenshot of the final results provided for the reference -
Del-DpAr-Dur-MxMn-D-CF - Harsh =
VAR _Max_Value =
CALCULATE(
MAXX(
ALLSELECTED( 'Calendar' ) ,
[Del-DpAr-Dur] ) ,
ALLEXCEPT( 'Calendar' , 'Calendar'[Year] ) ,
VALUES( 'Calendar'[Year] ) )
VAR _Min_Value =
CALCULATE(
MINX(
ALLSELECTED ( 'Calendar' ) ,
[Del-DpAr-Dur] ),
ALLEXCEPT( 'Calendar' , 'Calendar'[Year] ) ,
VALUES( 'Calendar'[Year] ) )
VAR _Color =
IF( [Del-DpAr-Dur] = _Max_Value , "#F9D987" ,
IF( [Del-DpAr-Dur] = _Min_Value , "#AADBD6" ,
"#D3D9B4") )
RETURN
_Color
The same will be applicable for the Min Values as well.
I’m also attaching the working of the PBIX file for the reference purposes.
Hoping you find this useful and meets your requirements that you’ve been looking for.
Thanks and Warm Regards,
Harsh
demo-dataset2-JFK - Harsh.pbix (13.4 MB)