scottsen
Well-known Member
- Joined
- Mar 16, 2014
- Messages
- 1,263
If I execute this:
EVALUATE
TOPN (
COUNTA ( MyTable[MyValue] ) / 2,
ALL ( MyTable ),
MyTable[MyValue],
1
)
I see values come back as the lowest values in my table: 1,1,1,2,2,2. All is good.
And then wrap the same exact TOPN in a MAXX... inside a measure / calculated field...
=MAXX(
TOPN (
COUNTA ( MyTable[MyValue] ) / 2,
ALL ( MyTable ),
MyTable[MyValue],
1
),
MyTable[MyValue]
)
And it comes back with the largest number in my entire table, not just the TOPN. (10 in my test case).
I can't wrap my head around why this would be... can anybody help?
-Scott
EVALUATE
TOPN (
COUNTA ( MyTable[MyValue] ) / 2,
ALL ( MyTable ),
MyTable[MyValue],
1
)
I see values come back as the lowest values in my table: 1,1,1,2,2,2. All is good.
And then wrap the same exact TOPN in a MAXX... inside a measure / calculated field...
=MAXX(
TOPN (
COUNTA ( MyTable[MyValue] ) / 2,
ALL ( MyTable ),
MyTable[MyValue],
1
),
MyTable[MyValue]
)
And it comes back with the largest number in my entire table, not just the TOPN. (10 in my test case).
I can't wrap my head around why this would be... can anybody help?
-Scott