Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I'm fetching data from openweathermap api. Then I'm trying to create image url string to fetch image:
```
Solved! Go to Solution.
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.
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.
Works, thank u
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]))
funny that after pasting invalid url here it validated. raport still not working tho
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
70 | |
57 | |
37 | |
36 |
User | Count |
---|---|
85 | |
65 | |
60 | |
46 | |
45 |