Forum Discussion
AllanBerces
11 months agoPost Prodigy
Max Number per Week
Hi pls need help on how can i have the result i required, on my table from week 1 to current on the result i want to registered 1 if the number is max and 0 if not on the particular week. sample belo...
- 11 months ago
You will need to create a new calculated column in your data model to determine if a value is the maximum for its respective week.
Result =
IF(
'YourTable'[Count/Trade] =
CALCULATE(
MAX('YourTable'[Count/Trade]),
ALLEXCEPT('YourTable', 'YourTable'[Week])
),
1,
0
)
Aburar_123
11 months agoSolution Supplier
Hi AllanBerces ,
Please try this calculated column
Flag =
var Max_value = CALCULATE(MAX('Table'[Count/Trade]),FILTER('Table','Table'[Week]=EARLIER('Table'[Week])))
return if(Max_value='Table'[Count/Trade],1,0)