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
leandroduarte
Helper I
Helper I

Create a Calculate index per year

Dear All, I'm looking for a dax formula to create a calculate index for each year as per table below:

 

basically it would take the first item (A) and divide by the value *100 per year.

 

YearItemValuesIndex Year Calculated example expected
2019A2450100
2019B3000122
2019C190078
2020A6000100
2020B550092
2020C9000150
1 ACCEPTED SOLUTION
v-xicai
Community Support
Community Support

Hi @leandroduarte ,

 

You may create measure like DAX below.

 

Index Year =
VAR ValueA =
    CALCULATE (
        MAX ( Table1[Values] ),
        FILTER (
            ALLSELECTED ( Table1 ),
            Table1[Year] = MAX ( Table1[Year] )
                && Table1[Item] = "A"
        )
    )
VAR Current =
    MAX ( Table1[Values] )
RETURN
    DIVIDE ( ValueA * 100, Current )

Best Regards,

Amy 

 

Community Support Team _ Amy

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

3 REPLIES 3
v-xicai
Community Support
Community Support

Hi @leandroduarte ,

 

You may create measure like DAX below.

 

Index Year =
VAR ValueA =
    CALCULATE (
        MAX ( Table1[Values] ),
        FILTER (
            ALLSELECTED ( Table1 ),
            Table1[Year] = MAX ( Table1[Year] )
                && Table1[Item] = "A"
        )
    )
VAR Current =
    MAX ( Table1[Values] )
RETURN
    DIVIDE ( ValueA * 100, Current )

Best Regards,

Amy 

 

Community Support Team _ Amy

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

amitchandak
Super User
Super User

@leandroduarte , expected output is not clear

 

is it

 

divide([Value],[index Year])*100

or

divide(Sumx(filter(Table, [Year] =earlier([Year]) && [Item] ="A"),[Values]),umx(filter(Table, [Year] =earlier([Year]) && [Item] ="A"),[ Index Year]))*100

 

 

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

it basically need always to compare to the Values depending on year and fixing on the Iteam A

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

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!

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