cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
asalazarjr
Frequent Visitor

How to Highlight or shade one quarter in a line graph?

Hi, don't know if this is possible, but im trying to shade the background(Grey) of one specific quarter in a line graph. Trying to highlight the current quarter in a specific set of periods to help end-users understand which is the current quarter.

Any thoughts, or work arounds would be greatly appreciated!

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

Hi,  @asalazarjr 

You can try 'line and clustered chart'.

Use the value of the background height as the column value , and create a new measure to dynamically set the data color of the column.

Data colors of default color = 
IF (
    YEAR ( TODAY () ) = SELECTEDVALUE ( Table1[Date].[Year] )&&
    QUARTER ( TODAY () ) = SELECTEDVALUE ( Table1[Date].[QuarterNo] ),
    1,
    0
)

47.png

Reduce the inner padding to 0, you can get a similar visual.

49.png

Please check my sample  file for more details.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi,  @asalazarjr 

You can try 'line and clustered chart'.

Use the value of the background height as the column value , and create a new measure to dynamically set the data color of the column.

Data colors of default color = 
IF (
    YEAR ( TODAY () ) = SELECTEDVALUE ( Table1[Date].[Year] )&&
    QUARTER ( TODAY () ) = SELECTEDVALUE ( Table1[Date].[QuarterNo] ),
    1,
    0
)

47.png

Reduce the inner padding to 0, you can get a similar visual.

49.png

Please check my sample  file for more details.

 

Best Regards,
Community Support Team _ Eason
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

Fowmy
Super User
Super User

@asalazarjr 

Check this video, hope it can be adapted for your scenario.

https://www.youtube.com/watch?v=Ds8Twy4VvzU

 

 

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
September Update

Check it Out!

Click here to learn more about the September 2022 updates!

Power BI Dev Camp Session 26

Check it Out!

Mark your calendars and join us on Thursday, September 29 at 11a PDT for a great session with Ted Pattison!

Top Solution Authors