Forum Discussion
henoktd
1 year agoRegular Visitor
TOP N
wha is the error here.
TopDepartment =
CALCULATE(
FIRSTNONBLANK(KPI[Department], 1),
TOPN(1, ALL('KPI'), [DepartmentAchievement], DESC)
henoktd Hi! Try with:
TopDepartment =
CALCULATE(
SELECTEDVALUE(KPI[Department]),
TOPN(1, ALL('KPI'), [DepartmentAchievement], DESC)
)BBF
3 Replies
- AnonymousNot applicable
Hi henoktd ,
Can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
- AnonymousNot applicable
HI henoktd,
Any update on this? Can you please share some more detail information about this issue? They should help us clarify your scenario and test coding formula.
Regards,
Xiaoxin Sheng