Forum Discussion
values for next 5 days
Hi,
I am working on a report where 5 days (Today+next 4 days) weather data is visualzing on card visuals. the below is the sample data:
| dates | Humidity | Temperature | Windspeed | Expectation | Image |
| 2/11/2021 | 17.75 | 24.1075 | 3.41 | overcast clouds | http://openweathermap.org/img/w/04n.png |
| 2/12/2021 | 18 | 24.11875 | 3.8525 | overcast clouds | http://openweathermap.org/img/w/04d.png |
| 2/13/2021 | 19 | 23.96125 | 3.15875 | clear sky | http://openweathermap.org/img/w/01d.png |
| 2/14/2021 | 17.625 | 24.65125 | 2.71625 | clear sky | http://openweathermap.org/img/w/01d.png |
| 2/15/2021 | 17.375 | 24.81625 | 2.4925 | scattered clouds | http://openweathermap.org/img/w/04d.png |
I have to present Humidity, Temperature, Windspeed & Image on card visual for each date (today to today+4 days) seperately.
For the numeric data (Humidity, Temperature & Windspeed) using the below measures which are working fine.
Now, I have 2 issues:
1. How to write dax to represent text/image data for 5 seperate days (today to today+4 days)
2. Is there any other efficient way to show data for next 5 days, as 5 no. of measures are required for each parameters. So, we can write the dax in more efficient way to keep least no. of measures.
Thanks
Hi jitpbi ,
I'm afraid that you can't show image in card visual. I suggest you just use table visual and add visual level filter on it to show date from today to today+4:
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai
3 Replies
- amitchandak
Super User
jitpbi , Formula/measures seem right.
But you can also use a relative date slicer
https://docs.microsoft.com/en-us/power-bi/visuals/desktop-slicer-filter-date-range
or a flag in your date table and filter on that
Is Next 5 Day = if('Date'[Date]>=TODAY() && 'Date'[Date]<=TODAY()+4,"Next 5 Days","Other")
- jitpbi
Post Patron
Thank you amitchandak for the suggestions.
Relative date slicer doesn't fit as it takes date range while i required on that particular day :
Also please suggest how to write dax for text fields: "Expectation" & "Image"
Thanks
- v-deddai1-msft
Community Support
Hi jitpbi ,
I'm afraid that you can't show image in card visual. I suggest you just use table visual and add visual level filter on it to show date from today to today+4:
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Best Regards,
Dedmon Dai