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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.