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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.