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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
floxxy
New Member

How can I show trends in a table based on previous Number not only Week over week but without Date?

Is there a way to schow kind of Week on Week trend without having a Date as basis? 

 

So here is the simple example table:

StepsRevenue
Step1125
Step2123
Step3155
Step4184
Step2112
Step3123
Step1142
Step4110
Step2129

 

And the result should look like this: 

 Sum of RevenueTrend vs. Previous
Step1267 
Step236436%
Step3278-24%
Step42946%
1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

@floxxy

 

Try this MEASURE

 

Trend Vs Previous =
VAR PreviousStep =
    CALCULATE (
        MAX ( TableName[Steps] ),
        FILTER (
            ALLSELECTED ( TableName[Steps] ),
            TableName[Steps] < SELECTEDVALUE ( TableName[Steps] )
        )
    )
VAR RevenuePreviousStep =
    CALCULATE ( SUM ( TableName[Revenue] ), TableName[Steps] = PreviousStep )
RETURN
    IF (
        NOT ( ISBLANK ( PreviousStep ) ),
        SUM ( TableName[Revenue] ) / RevenuePreviousStep
            - 1
    )

View solution in original post

2 REPLIES 2
Zubair_Muhammad
Community Champion
Community Champion

@floxxy

 

Try this MEASURE

 

Trend Vs Previous =
VAR PreviousStep =
    CALCULATE (
        MAX ( TableName[Steps] ),
        FILTER (
            ALLSELECTED ( TableName[Steps] ),
            TableName[Steps] < SELECTEDVALUE ( TableName[Steps] )
        )
    )
VAR RevenuePreviousStep =
    CALCULATE ( SUM ( TableName[Revenue] ), TableName[Steps] = PreviousStep )
RETURN
    IF (
        NOT ( ISBLANK ( PreviousStep ) ),
        SUM ( TableName[Revenue] ) / RevenuePreviousStep
            - 1
    )

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors