Forum Discussion
Anonymous
6 years agoNot applicable
New Items
Hi, I have data that has UPCs and sales data for them. My data is structured in a way that I have 4 times for data. Latest 4 weeks, latest 13 weeks, latest 26 weeks and latest 52 weeks and for ea...
Anonymous
6 years agoNot applicable
Hi Anonymous
Were you able to look at my last responses to your solution?
Anonymous
6 years agoNot applicable
Hi Anonymous
Sorry for responing late. I build a new table2, and add some values in it.
Then I build a new measure to achieve your goal:
New 2 =
VAR _Avg =
CALCULATE (
AVERAGE ( Table2[Amount] ),
FILTER (
ALL ( Table2 ),
Table2[UPCS] = MAX ( Table2[UPCS] )
&& 'Table2'[Status]
= MAX ( 'Table2'[Status] )
&& Table2[Time frame] = MAX ( 'Table2'[Time frame] )
))
VAR _Min =
CALCULATE (
MIN ( Table2[Amount] ),
FILTER (
ALL ( Table2 ),
Table2[UPCS] = MAX ( Table2[UPCS] )
&& 'Table2'[Status]
= MAX ( 'Table2'[Status] )
&& Table2[Time frame] = MAX ( 'Table2'[Time frame] )
))
RETURN
IF (
_Avg = _Min
&& MAX ( 'Table2'[Status] ) = "SALES"
&& MAX ( 'Table2'[Time frame] ) = "CUR"
&& MAX ( 'Table2'[Date] ) = "LATEST 04 WKS",
"New",
BLANK ()
)This measure will mark the one whose 04 Amount = 13/26/52 Amount, Statues = Sales and Time Frame = Cur as New.
You can download the pbix file from this link: New Items
Best Regards,
Rico Zhou
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.