This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi,
I hav a Transaction Table with bellow structure:
Date Customer Payment_Amount Payment_Count
1-Jan-17 Sami 10 1
1-Jan-17 Bayezid 10 1
1-Jan-17 Surkhru 10 1
2-Jan-17 Sami 10 2
2-Jan-17 Surkhru 10 2
3-Jan-17 Bayezid 10 2
3-Jan-17 Surkhru 10 3
3-Jan-17 Tanim 10 1
I need to calulate the Payment_Count column, where i need to see the Rank of the transaction, first time, second time etc.
Can this be done?
Regards,
Sami
Solved! Go to Solution.
Hi @samihuq
Try this Column
=
RANKX (
FILTER ( Table1, Table1[Customer] = EARLIER ( Table1[Customer] ) ),
CALCULATE ( VALUES ( Table1[Date] ) ),
,
ASC,
DENSE
)
Hi @samihuq,
What's your expected result? Rank customers by Payment_Amount?
Best Regards,
Dale
Hi,
Every Day My Customers Pays for my service. So i have a table of transactions. Now i need to identify the trasaction % received from my first time customer vs from existing customer. For that i need to rank the payment as first transaction or second transaction by the respective customer,
Hope it answers your query.
Thanks,
Sami
It works with your sample data.
What results did you get
Hi,
Below code in calculated column should do your job
Count = COUNTROWS(FILTER(Table1, Table1[Customer] = EARLIER(Table1[Customer]) && Table1[Date] <= EARLIER(Table1[Date])))
Unfortunately it did not solve my problem..
Hi @samihuq
Try this Column
=
RANKX (
FILTER ( Table1, Table1[Customer] = EARLIER ( Table1[Customer] ) ),
CALCULATE ( VALUES ( Table1[Date] ) ),
,
ASC,
DENSE
)
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 38 | |
| 29 | |
| 28 | |
| 20 | |
| 18 |
| User | Count |
|---|---|
| 66 | |
| 36 | |
| 30 | |
| 25 | |
| 24 |