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