Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hello everyone, everything good ?
I have a problem, because when I create a line graph, the x-axis is composed of (month-day), the y-axis values of temperatures and the legend categorical values of situation. The objective is to remove this gap from the line chart. Also the color of the line while the situation is equal to 1 has to be red and when the situation is equal to 2 it has to be blue.
Thank you very much!!
| time_stamp | temperature | situation |
| 04/03/2022 15:00:00 | 29 | 1 |
| 04/03/2022 17:00:00 | 29 | 1 |
| 04/03/2022 19:00:00 | 80 | 1 |
| 04/03/2022 22:00:00 | 220 | 1 |
| 05/03/2022 02:00:00 | 214 | 1 |
| 05/03/2022 05:00:00 | 187 | 2 |
| 05/03/2022 11:00:00 | 122 | 2 |
| 05/03/2022 15:00:00 | 85 | 2 |
| 05/03/2022 17:00:00 | 63 | 2 |
Erro graph:
@powerbibds , With legend I doubt you can remove this gap,As Values are mutually exclusive use it without legend
But how do I set the graph line colors differently when the situation variable changes?
Like the example below.
Thxx
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.