Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.
Hi Team,
Wanted to showcase last date value in different color like as attached snapshot.
(for ex: as per the below data 29-sep-2020 is the lastdate , lastdate value should shoecase in different color)
I am having the below data:
Date Value
22-Sep-20 20
23-Sep-20 40
24-Sep-20 80
25-Sep-20 60
26-Sep-20 20
27-Sep-20 30
28-Sep-20 60
29-Sep-20 90
Expected Output:
Thanks In Advance
@Anonymous , if color the line you have to create a measure that gives data of last two days
Measure =
var _max = maxx(allselcted(date), date[date])
var _min = maxx(allselcted(date), date[date]) -1
return
calculate([measure], filter(Table[date], date[date] <=_max && date[date]))
Or create a color measure. First, create a bar and use it in conditional formatting. Use the field value options. Once done convert Bar to line visual
Measure =
var _max = maxx(allselcted(date), date[date])
return
if(Max(Date[date]) =_max, "green", "Blue")
refer my blog
or
refer:https://radacad.com/dax-and-conditional-formatting-better-together-find-the-biggest-and-smallest-numbers-in-the-column
https://docs.microsoft.com/en-us/power-bi/desktop-conditional-table-formatting#color-by-color-values
Hi Amit,
I need toshow case last non blank value in different colour. For Ex: 23-sep value should show in different colour.
Date Value
22-Sep-2020 30
23-Sep-2020 40
24-Sep-2020 Null
Thanks In Advance