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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
JRHans09
Resolver II
Resolver II

Hide the last 90 days of rolling average 365 day win % on a line and stacked column chart?

How do I hide the last 90 days of the line on the chart below? The line represents the 365 day rolling average win % calculation.

 

Win % measure:

Win% for All Jobs during Period Selected := 
DIVIDE(
    [Total Jobs Won],
    [Total Jobs during the selected period],
    0
) 

Rolling 365 day average for Win % measure:

Win% Rolling 365 Days Avg := 
CALCULATE(
    [Win% for All Jobs during Period Selected],
    DATESINPERIOD(
        Dates[Date],
        LASTDATE( Dates[Date] ),
        -365,
        DAY
    )
)

 

The line on the graph below represents the 365 day rolling average. How do I adjust the measure above to hide the last 90 days of the line?

Graph Sample.png

 

1 ACCEPTED SOLUTION
TeigeGao
Solution Sage
Solution Sage

Hi @JRHans09 ,

In your scenario, you can add the IF() function to change the value of the last 90 days to blank(), then it will not display.

Best Regards,

Teige

View solution in original post

1 REPLY 1
TeigeGao
Solution Sage
Solution Sage

Hi @JRHans09 ,

In your scenario, you can add the IF() function to change the value of the last 90 days to blank(), then it will not display.

Best Regards,

Teige

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! Prices go up Feb. 11th.

Feb2025 Sticker Challenge

Join our Community Sticker Challenge 2025

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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