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
mrslyfox
Helper II
Helper II

division into even and odd

Dear Colleagues,

 

Looking for ideas how to create calculated columns which can represent results in the folowing way

DateCustomerProductProduct IDCustomer Order NrNumber of CarriersCalculated Column
02-03-18Customer AProduct A100012000111
02-03-18Customer AProduct A100012000110
02-03-18Customer AProduct A100012000111
02-03-18Customer AProduct A100012000110
02-03-18Customer AProduct A100012000111
02-03-18Customer AProduct A100012000110
03-03-18Customer BProduct B100022000211
03-03-18Customer BProduct B100022000210
03-03-18Customer BProduct B100022000211
03-03-18Customer BProduct B100022000210

 

 

1 ACCEPTED SOLUTION
Lind25
Resolver I
Resolver I

You can do this using Power Query Editor.
Add an index column starting at 1. Then transform this using standard > modulo with a divisor of 2.

View solution in original post

1 REPLY 1
Lind25
Resolver I
Resolver I

You can do this using Power Query Editor.
Add an index column starting at 1. Then transform this using standard > modulo with a divisor of 2.

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.