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
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
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.