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
rainerpowerbi
Resolver I
Resolver I

Measure showing deviation (%) (timestamps in datainput are within one field)

Hi,

I have datainput in a special structure and I want to keep this structure

The timestamp per period in datainput is within one field.

 

Is there a possibilty to create a measure to display the deviation (%) between timestamp 2020 to 2021

for example within a powerbi-matrix ?

 

rainerpowerbi_0-1610032987069.png

 

Kind regards and thanks

 

Rainer

 

1 ACCEPTED SOLUTION
themistoklis
Community Champion
Community Champion

@rainerpowerbi 

 

I would go for table instead of matrxi in case more years will be added to input data.

For the table you can create the following 3 measures:

2020 = CALCULATE(SUM('DataInput'[Sales]), FILTER('DataInput', 'DataInput'[time-stamp]=2020))

2021 = CALCULATE(SUM('DataInput'[Sales]), FILTER('DataInput', 'DataInput'[time-stamp]=2021))

Deviation = ([2021] - [2020]) / [2020]

View solution in original post

2 REPLIES 2
themistoklis
Community Champion
Community Champion

@rainerpowerbi 

 

I would go for table instead of matrxi in case more years will be added to input data.

For the table you can create the following 3 measures:

2020 = CALCULATE(SUM('DataInput'[Sales]), FILTER('DataInput', 'DataInput'[time-stamp]=2020))

2021 = CALCULATE(SUM('DataInput'[Sales]), FILTER('DataInput', 'DataInput'[time-stamp]=2021))

Deviation = ([2021] - [2020]) / [2020]

Thanks !

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