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
can5539
Frequent Visitor

Can't show Image URL in matrix on recent date.

powerbi ask.png

 I need to show status(image URL GREEN/ORANGE/RED) of transformer at every location on recent date that workers do oil dielectric test but dashboard still shows wrong image URL.

 

For example

     DATE                           Status

  1/1/2020         Red(should change oil)

  2/1/2020         orange(should filter oil)

  3/1/2020         Green(good condition)

In Matrix

                           No.

                           Substation No.

 

Location            Green

1 ACCEPTED SOLUTION

@can5539 , Try one of the 2

Measure =
var _max = calculate(lastedate(Table[Date]))
return
calculat(max(Table[url]), filter(Table,Table[Date]=_max))

or

Measure =
var _max = maxx(allselected(Table),Table[Date])
return
calculat(max(Table[url]), filter(Table,Table[Date]=_max))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

View solution in original post

6 REPLIES 6
amitchandak
Super User
Super User

@can5539 , you can create a measure to return URL and at recent date only and change is the type to URL

 

Measure = calculat(max(Table[url]), filter(Table[Date]=lastedate(Table[Date]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak It shows error "The argument is passed too little to the FILTER function. The minimum number of arguments for this function is 2."

I can't do your recommendation.

powerbi ask2.png

@can5539 , Try one of the 2

Measure =
var _max = calculate(lastedate(Table[Date]))
return
calculat(max(Table[url]), filter(Table,Table[Date]=_max))

or

Measure =
var _max = maxx(allselected(Table),Table[Date])
return
calculat(max(Table[url]), filter(Table,Table[Date]=_max))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak I try out your solution. It works!Thank you for your help.

@can5539 , Try like

Measure = calculat(max(Table[url]), filter(Table,Table[Date]=lastedate(Table[Date]))

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak It shows red image in all cells. It still shows wrong data.

powerbi ask3.png

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.

Top Kudoed Authors