cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
samihuq
Helper III
Helper III

Find Transaction Number

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

 

1 ACCEPTED SOLUTION
Zubair_Muhammad
Community Champion
Community Champion

Hi @samihuq

 

Try this Column

 

=
RANKX (
    FILTER ( Table1, Table1[Customer] = EARLIER ( Table1[Customer] ) ),
    CALCULATE ( VALUES ( Table1[Date] ) ),
    ,
    ASC,
    DENSE
)

Regards
Zubair

Please try my custom visuals

View solution in original post

7 REPLIES 7
anderson
New Member

nice blog this is very intresting blog i am thanks ful to you click here

v-jiascu-msft
Microsoft
Microsoft

Hi @samihuq,

 

What's your expected result? Rank customers by Payment_Amount? 

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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 

@samihuq

 

It works with your sample data.

 

What results did you get

 

Findtransactionnumber.png


Regards
Zubair

Please try my custom visuals
afzalphatan
Resolver I
Resolver I

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..

Zubair_Muhammad
Community Champion
Community Champion

Hi @samihuq

 

Try this Column

 

=
RANKX (
    FILTER ( Table1, Table1[Customer] = EARLIER ( Table1[Customer] ) ),
    CALCULATE ( VALUES ( Table1[Date] ) ),
    ,
    ASC,
    DENSE
)

Regards
Zubair

Please try my custom visuals

Helpful resources

Announcements
collabdays lisbon

CollabDays Lisbon - 26 November 2022

Sessions include practical, hands-on experience that will help you take the next step in your career and know-how.

Difinity Conference

Difinity Conference 2022

Difinity is the largest Microsoft Data, AI, Power BI, Power Platform and Business Applications Conference in New Zealand.

European Share Point Conference

European Share Point Conference

This conference returns live and in-person in Copenhagen this 28 November-01 December with 4 Microsoft Keynotes, 9 Tutorials, and 120 Sessions.

Microsoft 365 Conference â__ December 6-8, 2022

Microsoft 365 Conference - 06-08 December

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.