Forum Discussion
Need help with creating a key index
- Anonymous7 years ago
Hi again,
1. You are missing the filter function around the table argument in the MINX function
2. You should not compair the date column to the variable, but the Index column to the variable.
This is how it should be:
VAR index = IndexColumn
RETURNMINX(
FILTER(
Table,
IndexColumn = index
);
DateColumn
)Regards,
Kristjan
Hi Anonymous,
Thanks for rapid answer. Agree with your logic, only issue left is that DAX is unable to compare values of date with string. The error considers the use of VALUE or FORMAT. Any clue on how to apply this to the formula?
Hi again,
1. You are missing the filter function around the table argument in the MINX function
2. You should not compair the date column to the variable, but the Index column to the variable.
This is how it should be:
VAR index = IndexColumn
RETURN
MINX(
FILTER(
Table,
IndexColumn = index
);
DateColumn
)
Regards,
Kristjan
- Anonymous7 years agoNot applicable
Fantastic it works thanks so much