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 Show Episode 10 Recap

The Power BI Community Show

Watch the playback when Amit Chandak, a Power BI Super User, demos how to use Field Parameters to make reports more dynamic.

Power BI Dev Camp Session 26

New Date - Check it Out!

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

Health and Life Sciences Power BI User Group

Health and Life Sciences Power BI User Group

Power BI specialists at Microsoft have created a community user group where customers in the provider, payor, pharma, health solutions, and life science industries can collaborate.

Top Solution Authors