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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It 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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors