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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
nikkirai
Frequent Visitor

Is it possible to have multiple actual vs. target s-curves in the same visual?

I have an s-curve graph that compares actual vs. target sales for Quarter 1 of the year. I have created a measure like this:

Cumulative Sum Actual =
VAR CurrentQtr = MAX('Table'[Quarter])

RETURN

CALCULATE(SUM('Table'[Sales),

FILTER(

           ALLSELECTED('Table'), 'Table'[Quarter] = CurrentQtr && 'Table'[SalesDate] <=MAX('Table'[SalesDate])
     )
)

How do I combine Q1 s-curve with Q2, Q3, Q4 in the same visual? Do I need to create a measure for each quarter?

Thanks!

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

HI @nikkirai,

I'd like to suggest you extract the quarter field to use with valued function, then these calculation will as be grouped by quarter and autofit with different quarters.

Cumulative Sum Actual =
VAR CurrentQtr =
    MAX ( 'Table'[Quarter] )
RETURN
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[SalesDate] <= MAX ( 'Table'[SalesDate] )
        ),
        VALUES ( 'Table'[Quarter] )
    )

Regards,

Xiaoxin Sheng

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

HI @nikkirai,

I'd like to suggest you extract the quarter field to use with valued function, then these calculation will as be grouped by quarter and autofit with different quarters.

Cumulative Sum Actual =
VAR CurrentQtr =
    MAX ( 'Table'[Quarter] )
RETURN
    CALCULATE (
        SUM ( 'Table'[Sales] ),
        FILTER (
            ALLSELECTED ( 'Table' ),
            'Table'[SalesDate] <= MAX ( 'Table'[SalesDate] )
        ),
        VALUES ( 'Table'[Quarter] )
    )

Regards,

Xiaoxin Sheng

lbendlin
Super User
Super User

yes

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

Find out what's new and trending in the Fabric community.

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.