Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
M_SBS_6
Helper V
Helper V

Line Chart

Hi, 

I have a line chart with future values. Is there anything I can do to change a colour of the line from blue to orange where the date is greater than today? 

 

X-axis : month_year

Y-axis : sum app_amt

1 ACCEPTED SOLUTION
v-jingzhan-msft
Community Support
Community Support

Hi @M_SBS_6 

 

If your line chart doesn't have a legend field, you can create a measure for the sum of future values. Just like below. Add it to Y-axis. You will have two Y-axis fields now. Then you can format their colors separately. 

Future Amt = IF(SELECTEDVALUE('Table'[Date])>=TODAY(),SUM('Table'[app_amt]))

vjingzhanmsft_0-1712799565249.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

View solution in original post

1 REPLY 1
v-jingzhan-msft
Community Support
Community Support

Hi @M_SBS_6 

 

If your line chart doesn't have a legend field, you can create a measure for the sum of future values. Just like below. Add it to Y-axis. You will have two Y-axis fields now. Then you can format their colors separately. 

Future Amt = IF(SELECTEDVALUE('Table'[Date])>=TODAY(),SUM('Table'[app_amt]))

vjingzhanmsft_0-1712799565249.png

 

Best Regards,
Jing
If this post helps, please Accept it as Solution to help other members find it. Appreciate your Kudos!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.