Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 216485

Previous Total

$
0
0

Hi all,

 

I'm trying to calculate a figure based on a previous total, I need to decrement two columns in order to calculate but having a few issues.

 

My data and required output looks like

 

Prev_Period.GIF

 

I have tried the following but cant get MeasureX to calculate correctly. MeasureX just needs to show the total for the previous year and previous level i.e. 2015 level 2 = 2014 level 1. Both coumns are whole numbers.

 

The forula I have tried are:

=calculate(sum(table([value]),table[Year]-1,table[level]-1)
=calculate(
	sum(table[value]),
	filter(all(table[Year]),table[Year]-1),
	filter(all(table[Level),table[level]-1)
	)

Any ideas? I thought this would be straight forward Smiley Sad

 

Thanks


Viewing all articles
Browse latest Browse all 216485

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>