Forum Discussion
Dicken
Post Prodigy
2 years agoDAX index Function how to use?
Hi, I have not used index in dax pbi, but thouhgt I'd have a look, so created a date table ; dDate =
ADDCOLUMNS(
CALENDAR( DATE( 2020,1,1), DATE( 2025,12,31) ) ,
"Year", YEAR([Date]),
"...
- 2 years ago
Dicken , I created a table with the same code, and it worked
In case of measure use
Maxx( INDEX(1 , dDate, ORDERBY(dDate[Date]) ), [Date])
Power BI Index function: Top/Bottom Performer by name and value- https://youtu.be/HPhzzCwe10U
- 2 years ago
Dicken Try this :
use distinct around the table you are using in window functions
let me know if this works
amitchandak
Super User
2 years agoDicken , I created a table with the same code, and it worked
In case of measure use
Maxx( INDEX(1 , dDate, ORDERBY(dDate[Date]) ), [Date])
Power BI Index function: Top/Bottom Performer by name and value- https://youtu.be/HPhzzCwe10U
Dicken
Post Prodigy
2 years agoSorry, just to add did this in power pivot Dax studo, but this is what I would expect index to return,
a one row ( top ) table;
EVALUATE
FILTER( 'Calendar',
'Calendar'[Date] = DATE( 2020,1,1)
)
Richard.