Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi
I have created one visual with 4 year data using Line chart. i want to represent a color functionality to represent each year with different color.
as of now i am able to get one color, checked the conditional formatting in data color level but it is not available.
Please suggest, if there is any possibility chart is available or any dax required to get the color change on every 52 weeks?
Regards,
Rajendra
Proud to be a Super User! | |
If you always show data for the last four years, then perhaps you could split it into four different queries and plot them as individual sets with different colours in your chart.
Hi,
I am showing the last 4 years data with trend , dont want to split the year wise. i tried with option for data color format condition which is not available. is there any way to showcase the data color for each year with different based on year x axis.?
want to represent the line chart for every year with different colour.
Proud to be a Super User! | |
Hi @rajendraongole1 ,
We can create a calculated column with year value as legand field to seet color for every year, but it will split the line chart.
Sorry for that, I also not found other effective solution to achieve your requirement, perhaps you can submit the requirement to ideas and add your comments there to make this feature coming sooner : https://ideas.powerbi.com/forums/265200-power-bi-ideas . Or you could create your own custom visual if is an experienced web developer. https://powerbi.microsoft.com/en-us/documentation/powerbi-custom-visuals/
BTW, pbix as attached.
Best regards,
Community Support Team _ Dong Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi
Thanks for the support.,
I have raised this requirement as idea forum.
Please vote it if it is valid. thanks for the support.
Proud to be a Super User! | |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 104 | |
| 82 | |
| 72 | |
| 46 | |
| 35 |