Forum Discussion
Chandrashekar
Resolver III
4 years agoindentify first instance based on multi criteria power bi
Hello,
How to get first instance based on multi criteria. I have shared excel formula to get and for reference.
Sample Data: Sample Data
Regards,
Chandrashekar B
Chandrashekar
Please refer to attached sample file. You need to addindex column using power query.Result = VAR CurrentIndex = 'Table'[Index] VAR CurrentTable = CALCULATETABLE ( 'Table', ALL ( 'Table'[Index] ) ) VAR FilteredTable = FILTER ( CurrentTable, 'Table'[Index] <= CurrentIndex ) RETURN IF ( COUNTROWS ( FilteredTable ) = 1, 1, 0 )
6 Replies
- tamerj1
Community Champion
Hi Chandrashekar
Can you attach a screenshot of the excel sheet along with the formula?- Chandrashekar
Resolver III
Hello,
Please find attached excel data with Formula.
Sample Excel Data: Excel Sample Data
Regards,
Chandrashekar B
- tamerj1
Community Champion
Chandrashekar
The link is not working
- tamerj1
Community Champion
Chandrashekar
Please refer to attached sample file. You need to addindex column using power query.Result = VAR CurrentIndex = 'Table'[Index] VAR CurrentTable = CALCULATETABLE ( 'Table', ALL ( 'Table'[Index] ) ) VAR FilteredTable = FILTER ( CurrentTable, 'Table'[Index] <= CurrentIndex ) RETURN IF ( COUNTROWS ( FilteredTable ) = 1, 1, 0 )- Chandrashekar
Resolver III
Thanks for the solution.