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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
jenani_user
Frequent Visitor

Matching alternate columns in powerbi

Hi Team,

As shown I have table with more than 60 columns which contains two sets of data in alternate columns, I need to find the unmatched values in the columns and get output as shown

jenani_user_0-1703064986446.png

Output:

jenani_user_1-1703064996665.png

 

Thanks & Regards

JEN

 

 

1 ACCEPTED SOLUTION
v-yangliu-msft
Community Support
Community Support

Hi  @jenani_user ,

 

Here are the steps you can follow:

1. In power query – select [A.acc], [B.acc], [A.text], [A.text].

vyangliumsft_0-1704074885009.png

2. Select [Value] – Group By.

vyangliumsft_1-1704074885011.png

3. Select [ALL] – Select the columns you want.

vyangliumsft_2-1704074899560.png

4. Select [Count] -- 1.

vyangliumsft_3-1704074899561.png

5. Select [Count] and [ALL.A.id] – Remove Columns.

vyangliumsft_4-1704074917448.png

6. Select [ALL.Attribute] – Pivor Column.

vyangliumsft_5-1704074917450.png

7. Result:

vyangliumsft_6-1704074929826.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

3 REPLIES 3
v-yangliu-msft
Community Support
Community Support

Hi  @jenani_user ,

 

Here are the steps you can follow:

1. In power query – select [A.acc], [B.acc], [A.text], [A.text].

vyangliumsft_0-1704074885009.png

2. Select [Value] – Group By.

vyangliumsft_1-1704074885011.png

3. Select [ALL] – Select the columns you want.

vyangliumsft_2-1704074899560.png

4. Select [Count] -- 1.

vyangliumsft_3-1704074899561.png

5. Select [Count] and [ALL.A.id] – Remove Columns.

vyangliumsft_4-1704074917448.png

6. Select [ALL.Attribute] – Pivor Column.

vyangliumsft_5-1704074917450.png

7. Result:

vyangliumsft_6-1704074929826.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

v-yangliu-msft
Community Support
Community Support

Hi  @jenani_user ,

 

Here are the steps you can follow:

1. Create calculated table.

Table 2 =
var _table1=
FILTER(
    'Table',
    'Table'[A.acc]<>'Table'[B.acc])
var _table1_1=
SUMMARIZE(
    _table1,[A.acc],[B.acc])
var _table2=
FILTER(
    'Table',
    'Table'[A.text]<>'Table'[B.text])
var _table2_1=
SUMMARIZE(
    _table2,[A.text],[B.text])
return
CROSSJOIN(
    _table1_1,_table2_1)

2. Result:

vyangliumsft_0-1703135677661.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

HI,
Thanks for the response,

In this case,If the table has only few columns then this would be fine whereas the actual table contains more 60 columns, Could suggest any other ways to compare and create dynamically?

 

 

Thanks & Regards,

Jen

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

Check out the June 2024 Power BI update to learn about new features.

PBI_Carousel_NL_June

Fabric Community Update - June 2024

Get the latest Fabric updates from Build 2024, key Skills Challenge voucher deadlines, top blogs, forum posts, and product ideas.

Top Solution Authors