Forum Discussion
Anonymous
8 years agoNot applicable
Ranking Without any aggregate expression
Hi Power BI Gurus, I have below set of data Customer Id Calendar Date Sale Id Standing Order Id 123 14-NOV-13 00:00:00 15264717659 11674594922 123 05-DEC-13 00:00:00 1528509907...
- 8 years ago
Hi Anonymous
Try this calculated column
What is the role of Sale ID in RANKING?
SO_Instance = RANKX ( FILTER ( ALL ( TableName ), TableName[Customer Id] = EARLIER ( TableName[Customer Id] ) && TableName[Standing Order Id] = EARLIER ( TableName[Standing Order Id] ) ), TableName[Calendar Date], , Asc, DENSE )
Zubair_Muhammad
Community Champion
8 years agoHi Anonymous
Try this calculated column
What is the role of Sale ID in RANKING?
SO_Instance =
RANKX (
FILTER (
ALL ( TableName ),
TableName[Customer Id] = EARLIER ( TableName[Customer Id] )
&& TableName[Standing Order Id] = EARLIER ( TableName[Standing Order Id] )
),
TableName[Calendar Date],
,
Asc,
DENSE
)Anonymous
8 years agoNot applicable
Great it worked like charm... but not surehow ?
May I have to read more article about Earlier...do you have any that explains in detail
Thanks
Swapnil
- Zubair_Muhammad8 years ago
Community Champion
Hi Anonymous
This was a little web post I wrote on EARLIER few months back
- Anonymous8 years agoNot applicable
Thanks Zubair