Hi,
A "simplified" version of my problem, which consists of 3 columns, namely CATEGORY, DATE, VALUE
Sample RAW DATA
My goal is to get : Average of month-on-month percentage for category A and B, for each row (DATE in my case)
----------------------------------------------------------------
This is what I have achieved so far. The table below is not my final goal. The final goal is the table above, as noted.
(Please note the "DATE[Date]" column below is from lookup calendar table, with relationship.)
SUM = SUM ( MYTABLE[VALUE] )
MoM% = VAR Last = [SUM] VAR First = CALCULATE ( [SUM], DATEADD ( 'DATE'[Date], -1, DAY ) ) RETURN 100 * ( Last / First - 1 )
The real life problem requires me to get weighted average of data (vs simple average here), and for more than 20 different data in CATEGORY column (vs only two data here, namely A and B). I simplify the problem jz to make your life easy. Many thanks !!