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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Paulyeo11
Impactful Individual
Impactful Individual

Color last bar expression need to place at where ?

Hi All

I have below expression from Mr Amit , working fine last time , it will help me color the last bar to Red :-

Color Last Bar = var _max = maxx(ALLSELECTED('Date'), 'Date'[YrMth Sort]) return if(max('Date'[YrMth Sort]) = _max, "Red")
I try to put the expression at legend of the chart , it does not work , i try data color also not working. Can some one share with me where i go wrong ?
Paul
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

Hi@Paulyeo11 ,  This you can only use in data color. Not as a legend. Also conditional formatting in case of Bar Visual will not work with Legend

View solution in original post

1 REPLY 1
amitchandak
Super User
Super User

Hi@Paulyeo11 ,  This you can only use in data color. Not as a legend. Also conditional formatting in case of Bar Visual will not work with Legend

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.