cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

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
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors