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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
divumj
Helper I
Helper I

Comparing data in same data set

Hi all

 

I am trying to find the rows where balances are exactly same and against that I have to add comments some thing like match.

 

For e.g.

 

S.no. name balance comment

1.      Mohit.  100.      Match

2.      Neha.    200.     No match

3.      Sunita.   100.     Match

 

Any suggestions please...

 

Regards

Mohit Jain

3 REPLIES 3
AlienSx
Super User
Super User

let
    Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WMlTSUfLNz8gsAdKGBgZKsTrRSkZAtl9qRiKQMoIKGQPZwaV5mSWJMHWxAA==", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [S.no = _t, name = _t, balance = _t]),
    group = Table.Group(
        Source, 
        "balance", 
        {{"all", each _}, {"comment", each Table.RowCount(_)}}
    ),
    match = Table.TransformColumns(group, {"comment", each if _ = 1 then "No match" else "Match"}),
    expand = Table.ExpandTableColumn(match, "all", {"S.no", "name"})
in
    expand

@AlienSx 

 

Thanks for suggestion it worked but partially...it gave me match...but we need match combination number as well to identify the exact item matching..

Any suggestions for that please it will be great help

dufoq3
Super User
Super User

You should provide sample data and expected result based on that.


Note: Check this link to learn how to use my query.
Check this link if you don't know how to provide sample data.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.