Forum Discussion
stribor45
Post Prodigy
2 years agoPull the value from returned row
Since my table returned is not base table and it is produced using this code VAR Y = ADDCOLUMNS ( X, "@RANK", RANKX ( X, [@COUNT],,, DENSE ) )
VAR Z = FILTER (Y, [@RANK] = 1) Z table looks l...
- 2 years ago
Hi stribor45,
Sorry about that. I had made a typo, where I had put two brackets instead of one.
Try this:
FIRSTNONBLANK(SELECTCOLUMNS(FILTER (Y, [@RANK] = 1),"Country",Y[Country]),[Country])
stribor45
Post Prodigy
2 years agothat didnt work for me. The syntax for '.' is incorrect
govindarajan_d
Super User
2 years ago- stribor452 years ago
Post Prodigy
- govindarajan_d2 years ago
Super User
Hi stribor45,
The formula I gave can be used for a measure, but in terms of EVALUATE it expects a table as a input.
Can you try the same inside a measure, preferably in Power BI desktop?
- stribor452 years ago
Post Prodigy
Yes thats why I typed "Evaluate X" instead of Z. I had same error in PBI measure as well