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
Jelbeanie
Regular Visitor

Measuring change in values on specific dates

Hi all, 

 

I'm trying to use 'VAR' to do measure the change between 2 numbers on specific dates. 

 

Basically, (old-new)/old - between 2 specific points of time that won't move, or change. They are fixed dates and fixed figures. This data is static. (the end result showing a -/+ % change). 

 

Table is built like this: 

Sector NameValueDate
A12019
B22019
C32019
D42019

A

52050

B

62050

C

72050

D

82050

 

I want to know the change from VALUE between 2019 and 2020, for each SECTOR (will use a filter selection). 

 

Code I've attempted: 

 

Value % difference from 2019 b =
VAR base  =
    CALCULATE(
        SUM('Employment by Industry'[Value]),
        'Employment by Industry'[Year] IN { "2019" })
Var future =
    CALCULATE(
        SUM('Employment by Industry'[Value]),
        'Employment by Industry'[Year] IN { "2050" })
Var subtraction =
    CALCULATE((Var base - var future)
Var result =
    DIVIDE(var subtraction, var base)

RETURN
IF ( not isblank(var result)
 
Can someone please advise?
 
thank you! 🙂 
1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi lbendlin ,thanks for the quick reply, I'll add more.

Hi @Jelbeanie ,

Try this

Value % difference from 2019 b = 
VAR base  =
    CALCULATE(
        SUM('Employment by Industry'[Value]),
        'Employment by Industry'[Year] IN { "2019" })
Var future =
    CALCULATE(
        SUM('Employment by Industry'[Value]),
        'Employment by Industry'[Year] IN { "2050" })
Var subtraction =
    base - future
Var result =
    DIVIDE(subtraction, base)

RETURN
IF ( NOT ISBLANK(result),result)

 

Best Regards,
Wenbin Zhou

 

View solution in original post

3 REPLIES 3
Anonymous
Not applicable

Hi lbendlin ,thanks for the quick reply, I'll add more.

Hi @Jelbeanie ,

Try this

Value % difference from 2019 b = 
VAR base  =
    CALCULATE(
        SUM('Employment by Industry'[Value]),
        'Employment by Industry'[Year] IN { "2019" })
Var future =
    CALCULATE(
        SUM('Employment by Industry'[Value]),
        'Employment by Industry'[Year] IN { "2050" })
Var subtraction =
    base - future
Var result =
    DIVIDE(subtraction, base)

RETURN
IF ( NOT ISBLANK(result),result)

 

Best Regards,
Wenbin Zhou

 

Thank you so much - this worked! Great learnings. Thank you 🙂

lbendlin
Super User
Super User

Consider using Visual Calculations instead. They have a concept of PREVIOUS (both for rows and columns)

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.