Forum Discussion
Anonymous
7 years agoNot applicable
How can i compare different values? (which are grouped)
Measure 11 =
VAR GroupedTable = FILTER(SUMMARIZE(ALLSELECTED('Sales'),'Smart Date'[Date Look Up],"New Value",SUM('Sales'[Value])),[New Value])
RETURN
CALCULATE(sum([New Value]),FILTER(Grou...
- Anonymous7 years ago
Hi Anonymous,
You can try to use following measure formula to compare particular value (twelve month ago) and current value:
Measure= VAR GroupedTable = SUMMARIZE ( ALLSELECTED ( 'Sales' ), 'Smart Date'[Date Look Up], "New Value", SUM ( 'Sales'[Value] ) ) VAR currDate = MAX ( 'Smart Date'[Date Look Up] ) RETURN MAXX ( FILTER ( GroupedTable, [Date Look Up] = DATE ( YEAR ( currDate ), MONTH ( currDate ) - 12, DAY ( currDate ) ) ), [New Value] ) - MAXX ( FILTER ( GroupedTable, [Date Look Up] = currDate ), [New Value] )If above not help, can you please share some sample data to help us clarify your data structure and requirement?
Regards,
Xiaoxin Sheng
Anonymous
7 years agoNot applicable
AlB i tried, but it ends up giving me the total values of all the months combined when i try to use the measure in a table split by the months column, because of this i can't choose a particular month and use its value in calculations.
AlB
Community Champion
7 years agoAnonymous
Your initial question referred to the inability to reference [New Value]. I understand that has been solved and you are asking something else now?