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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Create a line chart taking into account the percentage of previous period

I now have a line chart that shows what percentage of the orders have been achieved in a period based on requirements (for example, in the month of May there are 50 orders, of which 47% has been achieved). This line chart then shows the 47%.

 

However, I want to create a line chart that displays the percentage in the same way, but the percentage must also take into account orders from previous months. So up to and including April, for example, there have been 1000 orders and 67% of these have been fulfilled. In May, the above-mentioned 50 orders will be added, so that, for example, 65% of the 1050 have been achieved. The 65% must then be displayed in the line chart because it counts the previous months.

 

The line chart must be so flexible that I can make a choice between month level, year level, week level and day level.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

I suggest you to create a related date table to create the slicer and then create measures to calculate the result you want.

My Sample:

RicoZhou_2-1655365900593.png

Date =
ADDCOLUMNS (
    CALENDAR ( MIN ( 'Table'[Date] ), MAX ( 'Table'[Date] ) ),
    "Year", YEAR ( [Date] ),
    "Month", MONTH ( [Date] ),
    "MonthName", FORMAT ( [Date], "MMMM" ),
    "Weeknum", WEEKNUM ( [Date] ),
    "Day", DAY ( [Date] )
)

Relationship:

RicoZhou_0-1655365842238.png

Measure:

Basic Percentage = 
DIVIDE ( SUM ( 'Table'[Completed Qtr] ), SUM ( 'Table'[Qtr] ) )
Rolling Percentage = 
CALCULATE (
    [Basic Percentage],
    FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) )
)

Result is as below.

RicoZhou_1-1655365881040.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi @Anonymous ,

 

I suggest you to create a related date table to create the slicer and then create measures to calculate the result you want.

My Sample:

RicoZhou_2-1655365900593.png

Date =
ADDCOLUMNS (
    CALENDAR ( MIN ( 'Table'[Date] ), MAX ( 'Table'[Date] ) ),
    "Year", YEAR ( [Date] ),
    "Month", MONTH ( [Date] ),
    "MonthName", FORMAT ( [Date], "MMMM" ),
    "Weeknum", WEEKNUM ( [Date] ),
    "Day", DAY ( [Date] )
)

Relationship:

RicoZhou_0-1655365842238.png

Measure:

Basic Percentage = 
DIVIDE ( SUM ( 'Table'[Completed Qtr] ), SUM ( 'Table'[Qtr] ) )
Rolling Percentage = 
CALCULATE (
    [Basic Percentage],
    FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) )
)

Result is as below.

RicoZhou_1-1655365881040.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.