- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

concatinated string to image url not working
I'm fetching data from openweathermap api. Then I'm trying to create image url string to fetch image:
```
Image doesnt load, when printing ImageUrl to text field ive got
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @klaudiusze4t ,
if its returning this:
https://openweathermap.org/img/wn/13d@2x.png
its mean that your calculate is returning blank as result, lets breakdown this.
1- I'm supposing that you're in WeatherWrzesnia table, where you want to create a calculated column ImageUrl.
2- with this, you can create a new calculated column using this DAX:
ImageUrl =
"https://openweathermap.org/img/wn/" &
CALCULATE(
FIRSTNONBLANK(Weather[list.weather.icon], 1),
FILTER(
Weather,
Weather[list.dt_txt] = WeatherWrzesnia[list.dt_txt]
)
) &
"@2x.png"
I'm not using MIN function, because calculated columns works in row context also.
let me now if this help you, try to debbug your DAX to see what the calculate returns.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Hi @klaudiusze4t ,
if its returning this:
https://openweathermap.org/img/wn/13d@2x.png
its mean that your calculate is returning blank as result, lets breakdown this.
1- I'm supposing that you're in WeatherWrzesnia table, where you want to create a calculated column ImageUrl.
2- with this, you can create a new calculated column using this DAX:
ImageUrl =
"https://openweathermap.org/img/wn/" &
CALCULATE(
FIRSTNONBLANK(Weather[list.weather.icon], 1),
FILTER(
Weather,
Weather[list.dt_txt] = WeatherWrzesnia[list.dt_txt]
)
) &
"@2x.png"
I'm not using MIN function, because calculated columns works in row context also.
let me now if this help you, try to debbug your DAX to see what the calculate returns.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Works, thank u
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

Is this the output of your measure as a text?
https://openweathermap.org/img/wn/13d@2x.png
Because this loads fine in Power BI after changing its data category to image URL. What is the result of this calculation?
CALCULATE(
FIRSTNONBLANK(Weather[list.weather.icon], 1),
Weather[list.dt_txt] = MIN(WeatherWrzesnia[list.dt_txt]))
Dane Belarmino | Microsoft MVP | Proud to be a Super User!
Did I answer your question? Mark my post as a solution!
"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content

funny that after pasting invalid url here it validated. raport still not working tho

Helpful resources
Subject | Author | Posted | |
---|---|---|---|
12-02-2024 06:24 AM | |||
12-17-2024 07:00 AM | |||
01-15-2025 09:47 AM | |||
01-20-2025 10:57 AM | |||
01-07-2025 04:24 AM |
User | Count |
---|---|
125 | |
103 | |
84 | |
49 | |
46 |