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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.

Reply
muggydaniel
New Member

Merging Rows and add a Custom Collumn- Power Query

Hi all 

 

I have a scenario wherein I cannot find the answer, hoping to get some help with the below issue: 

 

Set of data is a row for every event that happens 

 

ApplicationTypeReworkedIn QueueAmount
GaryCredit CardNoIn Progress$10,000
GaryCredit CardYesCompleted$10,000
AnneLoanNoIn Progress$20,000

 

I am only looking to report on data that is In Queu - In Progress however each instance needs a custom collumn to take into account the amount of instances that it has been reworked 

 

Looking to be able to achieve the below > without affecting lines that haven't been reworked

 

ApplicationTypeReworkedIn QueueAmountAmount of Reworks
GaryCredit CardNoIn Progress$10,0001
AnneLoanNoIn Progress$20,0000

 

How can this be achieved?

 

Kind regards, 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi  @muggydaniel ,

 

Here are the steps you can follow:

1. Create calculated table.

Table 2 =
var _table1=
FILTER(
    'Table','Table'[In Queue] = "In Progress")
return
ADDCOLUMNS(
   _table1,"1",
    COUNTX(
        FILTER('Table',
        'Table'[Application]=EARLIER('Table'[Application])&&NOT('Table'[In Queue]) = "In Progress"),[In Queue])
   )

2. Result:

vyangliumsft_0-1675924026814.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

1 REPLY 1
Anonymous
Not applicable

Hi  @muggydaniel ,

 

Here are the steps you can follow:

1. Create calculated table.

Table 2 =
var _table1=
FILTER(
    'Table','Table'[In Queue] = "In Progress")
return
ADDCOLUMNS(
   _table1,"1",
    COUNTX(
        FILTER('Table',
        'Table'[Application]=EARLIER('Table'[Application])&&NOT('Table'[In Queue]) = "In Progress"),[In Queue])
   )

2. Result:

vyangliumsft_0-1675924026814.png

 

Best Regards,

Liu Yang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.