Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Create a sequence of number for accounting

Hello Power BI expert,

 

I'm trying to create a sequence of number in Power BI based on a criteria for an accounting dashboard, I have the following data already shaped in Power BI on previous calculation:

Company CodeRecordsType of RecordsCompany + Type of recordsDebitCredit
1050Record BB1050B020752
1050Record BB1050B20.7520
1050Record CC1050C01379
1050Record CC1050C1.379

0

 

 

Now I would like a create a new column of sequence of number (made by couple) based on the field  "Company code + Type of records",for the  for example:

 

Company CodeRecordsType of RecordsCompany + Type of recordsDebitCreditNew Field
1050Record BB1050B0207521
1050Record BB1050B20.7520,001
1050Record CC1050C013792
1050Record CC1050C1.379

0

 

2

 

The objective of the sequence is to isolate the records in debit / credit transaction for all the companies in my database (with different transaction).

It's possible to do this in power BI?

 

Thanks in advance!

1 ACCEPTED SOLUTION
vojtechsima
Memorable Member
Memorable Member

Hi, @Anonymous 
I am not sure if I get all your requirements right, however, this looks like it could be it:

Sequence = RANKX('Table (2)', 'Table (2)'[Company + Type of records],,ASC, Dense)

vojtechsima_0-1646949918315.png

 

View solution in original post

2 REPLIES 2
vojtechsima
Memorable Member
Memorable Member

Hi, @Anonymous 
I am not sure if I get all your requirements right, however, this looks like it could be it:

Sequence = RANKX('Table (2)', 'Table (2)'[Company + Type of records],,ASC, Dense)

vojtechsima_0-1646949918315.png

 

Anonymous
Not applicable

Thank you very much, it seems work as expected! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.