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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
chiru5262
Helper III
Helper III

I want to get the list of numbers matching with one column to second column within the same table

So I have the below info

 

WO numhas followup upWorktype
1YP
2YP
3YP
4YP
5YP

 

where my wo number have the followup work as 'Y'.

 

Now in the same table I have the below info where the wonum which have followup work as Y will match with the 'Orginating Record' column below in the same table.

WO numWorktypeOrginating Record
6C1
7C1
8C1
9C2
10C2
11C2
12C3
13C4
14C5

 

The output  I want to acheive

 

How many wonum from table 1 have related orginating record in table 2. from the above example the out put should be

 

 

WO num table 1WO num table 2
16
 7
 8
29
 10
 11
312
413
514

 

Appreciate your help guys.

@mickey64  please see if you can help on this, appreciate your time

 

2 ACCEPTED SOLUTIONS

@chiru5262 , Try using updated dax with value 

 

OutputTable =
VAR Table1 =
SELECTCOLUMNS(
FILTER(WorkOrders, WorkOrders[followup up] = "Y"),
"WO num table 1", VALUE(WorkOrders[WO num])
)
VAR Table2 =
SELECTCOLUMNS(
FILTER(WorkOrders, NOT ISBLANK(WorkOrders[Orginating Record])),
"WO num table 1", VALUE(WorkOrders[Orginating Record]),
"WO num table 2", WorkOrders[WO num]
)
RETURN
NATURALINNERJOIN(Table1, Table2)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

Anonymous
Not applicable

Hi @chiru5262 

All you need to do is change your data type.

vjialongymsft_0-1726195519669.png

vjialongymsft_1-1726195542735.png


Result:

vjialongymsft_2-1726195586173.png

 

 

 

 

Best Regards,

Jayleny

 

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

8 REPLIES 8
Anonymous
Not applicable

Hi @chiru5262 

All you need to do is change your data type.

vjialongymsft_0-1726195519669.png

vjialongymsft_1-1726195542735.png


Result:

vjialongymsft_2-1726195586173.png

 

 

 

 

Best Regards,

Jayleny

 

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

 

chiru5262
Helper III
Helper III

@amitchandak Could you please advise on above

chiru5262
Helper III
Helper III

@amitchandak ,@Greg_Deckler  could you guys please assist on above

bhanu_gautam
Super User
Super User

@chiru5262 , Create a calculated column to identify Wonum

RelatedWO =
IF (
ISBLANK ( WorkOrders[Orginating Record] ),
BLANK (),
WorkOrders[Orginating Record]
)

 

And then create a new output table by going to modelling and new table

 

OutputTable =
VAR Table1 =
SELECTCOLUMNS (
FILTER ( WorkOrders, WorkOrders[followup up] = "Y" ),
"WO num table 1", WorkOrders[WO num]
)
VAR Table2 =
SELECTCOLUMNS (
FILTER ( WorkOrders, NOT ISBLANK ( WorkOrders[Orginating Record] ) ),
"WO num table 1", WorkOrders[Orginating Record],
"WO num table 2", WorkOrders[WO num]
)
RETURN
NATURALINNERJOIN ( Table1, Table2 )

 

Go to the Report view.
Add a new table visual.
Drag the columns WO num table 1 and WO num table 2 from the OutputTable to the table visual.

 




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






@bhanu_gautam  its giving the below error.

 

chiru5262_0-1726129636833.png

 

 

Is it because instead of  WorkOrders[followup up] = "Y" I used  WorkOrders[followup up] = 1

 

any solution for that

@chiru5262 , Try using updated dax with value 

 

OutputTable =
VAR Table1 =
SELECTCOLUMNS(
FILTER(WorkOrders, WorkOrders[followup up] = "Y"),
"WO num table 1", VALUE(WorkOrders[WO num])
)
VAR Table2 =
SELECTCOLUMNS(
FILTER(WorkOrders, NOT ISBLANK(WorkOrders[Orginating Record])),
"WO num table 1", VALUE(WorkOrders[Orginating Record]),
"WO num table 2", WorkOrders[WO num]
)
RETURN
NATURALINNERJOIN(Table1, Table2)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






@bhanu_gautam Hi Bhanu

 

Still getting error.

 

chiru5262_0-1726130965207.png

 

Could you please check and advise, sorry for the inconvenience any

@bhanu_gautam @rajendraongole1  could you please advise on above, appreciate for your help thanks.

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Kudoed Authors