cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mgradijan
Resolver I
Resolver I

Line chart not connecting on running total for fiscal month

I have a line chart that has all monthly data points connected when I choose a single year to show, but when I select 2 years to show a comparison, the months where there were no sales is not connected.   screen shots of 2020 and 2019 & 2020 are below.  what am I missing? 

mgradijan_0-1604676520232.png

 

mgradijan_1-1604676568175.png

 

1 ACCEPTED SOLUTION
mgradijan
Resolver I
Resolver I

I figured out that I had put an if blank statement in so that the future monthly sales would not show up as a flat line to the end of the year.  

I redid the quick measure to create running total for sales by fiscal month and put this field in the Value box and now the graph displays as expected.   All set here

View solution in original post

3 REPLIES 3
mgradijan
Resolver I
Resolver I

the line chart as expected.......

 

mgradijan_0-1604678106272.png

 

mgradijan
Resolver I
Resolver I

I figured out that I had put an if blank statement in so that the future monthly sales would not show up as a flat line to the end of the year.  

I redid the quick measure to create running total for sales by fiscal month and put this field in the Value box and now the graph displays as expected.   All set here

mgradijan
Resolver I
Resolver I

I probably should have listed the formual for the running total calculations: 

 

INVOICED SALES running total in Fiscal Month = IF(ISBLANK(SUM('Invoice_Master'[INVOICED SALES])),BLANK(),
CALCULATE(
    SUM('Invoice_Master'[INVOICED SALES]),
    FILTER(
        CALCULATETABLE(
            SUMMARIZE(
                'Date Table',
                'Date Table'[Fiscal Month Number],
                'Date Table'[Fiscal Month]
            ),
            ALLSELECTED('Date Table')
        ),
        ISONORAFTER(
            'Date Table'[Fiscal Month Number], MAX('Date Table'[Fiscal Month Number]), DESC,
            'Date Table'[Fiscal Month], MAX('Date Table'[Fiscal Month]), DESC
        )
    )
))

Helpful resources

Announcements
Vote for T-Shirt Design

Power BI T-Shirt Design Challenge 2023

Vote for your favorite t-shirt design now through March 28.

March 2023 Update3

Power BI March 2023 Update

Find out more about the March 2023 update.

March Events 2023A

March 2023 Events

Find out more about the online and in person events happening in March!