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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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