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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

Reply
Ptolemaida
Frequent Visitor

How to calculate index based on a base year (=100)

I have a table with revenues per shop per month. the table is connected to a calender table.

I want now to create a measure that calculates:

2020 = 100 (base year)

2021 = for ex 105, 2022 = 99, 2023 = 114, etc

so for each shop, calculate the difference with the base year , per year, where for each shop 2020 = 100

 

thank you

2 ACCEPTED SOLUTIONS
amitchandak
Super User
Super User

@Ptolemaida ,  you can use this measure and take diff with revenue measure 

Calculate([Revenue], Date[Year] = 2000) 

 

or

 

Calculate([Revenue], Filter(all(Date), Date[Year] = 2000) )

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

View solution in original post

Amar_Kumar
Super User
Super User

@Ptolemaida you can use below measure

Revenue Index =
VAR BaseYearRevenue =
CALCULATE (
SUM ( Revenue[Amount] ),
ALL ( 'Calendar'[Year] ),
'Calendar'[Year] = 2020
)

VAR CurrentYearRevenue =
SUM ( Revenue[Amount] )

RETURN
IF (
NOT ISBLANK ( BaseYearRevenue ),
DIVIDE ( CurrentYearRevenue, BaseYearRevenue, 0 ) * 100
)

Hope this helps, if it does please mark it as a solution.

View solution in original post

5 REPLIES 5
v-pnaroju-msft
Community Support
Community Support

Hi Ptolemaida,

We are following up to see if what we shared solved your issue. If you need more support, please reach out to the Microsoft Fabric community.

Thank you.

v-pnaroju-msft
Community Support
Community Support

Thankyou, @amitchandak, @Amar_Kumar and @Ashish_Mathur for your responses.

Hi Ptolemaida,

We appreciate your inquiry through the Microsoft Fabric Community Forum.

We would like to inquire whether have you got the chance to check the solutions provided by @amitchandak, @Amar_Kumar and @Ashish_Mathur to resolve the issue. We hope the information provided helps to clear the query. Should you have any further queries, kindly feel free to contact the Microsoft Fabric community.

Thank you.

Ashish_Mathur
Super User
Super User

Hi,

Try this measure pattern

Total = sum(Data[sales])

Base = calculate([Total],calendar[year]=2000)

Calibrated to base = divide(100,[Base])*[Total]

If this does not help, then share some data to work with and show the expected result.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Amar_Kumar
Super User
Super User

@Ptolemaida you can use below measure

Revenue Index =
VAR BaseYearRevenue =
CALCULATE (
SUM ( Revenue[Amount] ),
ALL ( 'Calendar'[Year] ),
'Calendar'[Year] = 2020
)

VAR CurrentYearRevenue =
SUM ( Revenue[Amount] )

RETURN
IF (
NOT ISBLANK ( BaseYearRevenue ),
DIVIDE ( CurrentYearRevenue, BaseYearRevenue, 0 ) * 100
)

Hope this helps, if it does please mark it as a solution.

amitchandak
Super User
Super User

@Ptolemaida ,  you can use this measure and take diff with revenue measure 

Calculate([Revenue], Date[Year] = 2000) 

 

or

 

Calculate([Revenue], Filter(all(Date), Date[Year] = 2000) )

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

Helpful resources

Announcements
Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 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.