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
saravdinther12
Frequent Visitor

Yellow Column

saravdinther12_0-1679300287308.png

starteindticketnummerticketnummer.1behandelaarsgroepbehandelaarsgroep.1bloknummereerste startdatumlaatste einddatum
8-03-23 15:4210-03-23 6:06abcabcData TeamData Team18-03-23 15:4214-03-23 15:50
10-03-23 6:0611-03-23 21:42abcabcData TeamData Team18-03-23 15:4214-03-23 15:50
11-03-23 21:4214-03-23 15:42abcabcData TeamData Team18-03-23 15:4214-03-23 15:50
14-03-23 15:4214-03-23 15:50abcabcData TeamOrder team18-03-23 15:4214-03-23 15:50
14-3-2023 15:5015-3-2023 11:15abcabcOrder teamOrder team214-03-23 15:5015-03-23 15:52
15-3-2023 11:1515-3-2023 15:52abcabcOrder teamData Team214-03-23 15:5015-03-23 15:52
15-3-2023 15:5215-3-2023 15:54abcabcData TeamData Team315-03-23 15:5215-03-23 15:54
15-3-2023 15:54 abc Data Team 315-03-23 15:52 
in the image you see a yellow column and I would like to create it in Power Query. This column depends on the treatment group (behandelaarsgroep) and the ticket number (ticketnummer). If ticketnummer = ticketnummer.1 and behandelaarsgroep = behandelaarsgroep.1 then the same number as the row above. If 1 of the 2 is not equal then the number above + 1.
I come back every time in a circular reference. Can someone help me with this?

 😊

2 REPLIES 2
serpiva64
Super User
Super User

Hi,

take a look at the attached file.

i have grouped using  GroupKind.Local (see https://learn.microsoft.com/en-us/powerquery-m/table-group)

then add a index

If this post is useful to help you to solve your issue, consider giving the post a thumbs up and accepting it as a solution!

KeyurPatel14
Resolver IV
Resolver IV

HI @saravdinther12 ,
Please provide sample data so that I can copy it directly to my Power Query.
Thank you.

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.

Top Solution Authors
Top Kudoed Authors