Forum Discussion
CountIfs by past data
- Anonymous6 years ago
you mjust load you data and goes unde view/advance editors panel in PBI (I understood you use PBI, is it true?).
inside this panel cut and paste the lines of code you find in my post.
edit and modify so that you have a situation like this:
that is all.
a guess for the "hard" part only ๐
you have to add these lines after your lasta step and adapt the name of yourTab and other parameter as you like:
grp = Table.Group(yourTab, {"Make"}, {{"grpMake", each Table.AddIndexColumn(_, "Prev by Make", 0, 1)}}),
resulTab= Table.Sort(Table.ExpandTableColumn(grp, "grpMake", {"Model", "date", "Prev by Make"}),"date")
in
resulTab
Thanks for replying Anonymous ,
unfortunately, I couldn't quite understand how to implement it, I believe I'm not that advanced in PBI yet. Could you please explain step-by-step how to implement it a little bit more, please?
- Anonymous6 years agoNot applicable
you mjust load you data and goes unde view/advance editors panel in PBI (I understood you use PBI, is it true?).
inside this panel cut and paste the lines of code you find in my post.
edit and modify so that you have a situation like this:
that is all.
- htittoto6 years agoFrequent Visitor
Thanks Anonymous !