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

Top Solution Authors