Forum Discussion
tom1tas
3 years agoFrequent Visitor
Obtaining unique values based on a given condition
Hello Everyone, I currently have a query that contains data from hours reported towards different companies in 2022-2023 organized on a daily date format. Therefore for each day, I have a split of ...
tom1tas
3 years agoFrequent Visitor
Hey sincerely thanks for your response, I am at the point where you group by employee id and dates and include all rows with no summarization, I am not sure when to index as I tried doing it after and before expanding and it does not keep my max company hours as you stated,
let me know how to proceed from here,
thanks kindly
adudani
3 years agoMemorable Member
It's after the step of grouping.
Create a custom column:
Table.AddIndexColumn([Details],"Index")
This creates a new column with all rows in the table present in the details column, as well as the added index from 0.
Let me know if you have other questions.
wdx223_Daniel has a pretty elegant solution as well if you'd like to implement.