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
MarkusEng1998
Resolver II
Resolver II

Sheet List with incrementing number and letter

I need to create a list of Architectural Sheet names based on a variable in an Excel form.

I map this variable to the field [Value]

 

I am able to create the desired number of rows (one for each sheet) using a custom column list, and expanding the list to rows.

     = Table.AddColumn(#"Renamed Columns", "SheetCount", each {1..[Value]})

    

From this I am able to create a sheet list, e.g.

So far so good.

   Isolated Plan Views - 1

   Isolated Plan Views - 2

   Isolated Plan Views - 3

   Isolated Plan Views - 4

 

But I would also like it to increment by letter too. The new sheet name would be:

   Isolated Plan Views A - 1

   Isolated Plan Views B - 2

   Isolated Plan Views C - 3

   Isolated Plan Views D - 4

 

I created a second custom column list:    

     = Table.AddColumn(#"Renamed Columns", "SheetCount", each {"A.."D"})

but this created 16 rows, not the desired 4. Furthermore, since [Value] may vary, the above custom column assumes a static number of characters.

 

Please advise.

Thanks!

List.JPG

1 ACCEPTED SOLUTION
MarkusEng1998
Resolver II
Resolver II

I figured it out.

 

I created another column using the ASCII value for the letter.

= Table.AddColumn(#"Added Conditional Column", "ASCII", each Character.FromNumber([SheetCount] + 64))

 

 

 

View solution in original post

1 REPLY 1
MarkusEng1998
Resolver II
Resolver II

I figured it out.

 

I created another column using the ASCII value for the letter.

= Table.AddColumn(#"Added Conditional Column", "ASCII", each Character.FromNumber([SheetCount] + 64))

 

 

 

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.