Forum Discussion

admin11's avatar
admin11
Icon for Memorable Member rankMemorable Member
4 years ago

How to modify my expression , so that it will not return every row same value ?

Hi All

 

I have below expression working fine in the past :-

_amount_select2 =
SWITCH(
SELECTEDVALUE(SliceTable[SLice]),
"BRAND_C",IF(ISINSCOPE(summrizeTable3[rank]),
CALCULATE(SUM('SALES'[sales]),FILTER(ALLSELECTED('SALES'),[BRAND_C]=MAX('summrizeTable2'[BRAND_C]))),
SUM('SALES'[sales])))
 
Today it return every row same amount , which is wrong .

 

May i know how to trouble and modify the expression , so that it will return correctly ?
 
My PBI file :-
 
Paul Yeo

8 Replies