Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hi Team
Please help me i need new Column Gate entery Basis if gatey entery multipule i need single amount Freight amount Like my output.
| Gate entry | Freight Amount |
| CDA1031293 | 12850 |
| CDA1031293 | 12850 |
| CDA1031298 | 12000 |
| CDA1031298 | 12000 |
| CDA1031298 | 12000 |
| CDA1031298 | 12000 |
| CDA1031298 | 12000 |
| CDA1031331 | 12000 |
| CDA1031331 | 12000 |
| CDA1031411 | 12100 |
| CDA1031411 | 12100 |
| CDA1031424 | 12100 |
| CDA1031424 | 12100 |
| CDA1031424 | 12100 |
| CDA1031424 | 12100 |
| CDA1031482 | 12800 |
| CDA1031482 | 12800 |
| CDA1031482 | 12800 |
| CDA1031482 | 12800 |
| CDA1031482 | 12800 |
| CDA1031482 | 12800 |
| CDA1031482 | 12800 |
| CDA1031482 | 12800 |
| CDA1031482 | 12800 |
| CDA1031482 | 12800 |
| CDA1031493 | 12200 |
Output
| Gate entry | Freight Amount | Create Column |
| CDA1031293 | 12850 | 12850 |
| CDA1031293 | 12850 | |
| CDA1031298 | 12000 | 1200 |
| CDA1031298 | 12000 | |
| CDA1031298 | 12000 | |
| CDA1031298 | 12000 | |
| CDA1031298 | 12000 | |
| CDA1031331 | 12000 | 12000 |
| CDA1031331 | 12000 | |
| CDA1031411 | 12100 | 12100 |
| CDA1031411 | 12100 | |
| CDA1031424 | 12100 | 12100 |
| CDA1031424 | 12100 | |
| CDA1031424 | 12100 | |
| CDA1031424 | 12100 | |
| CDA1031482 | 12800 | 12800 |
| CDA1031482 | 12800 | |
| CDA1031482 | 12800 | |
| CDA1031482 | 12800 | |
| CDA1031482 | 12800 | |
| CDA1031482 | 12800 | |
| CDA1031482 | 12800 | |
| CDA1031482 | 12800 | |
| CDA1031482 | 12800 | |
| CDA1031482 | 12800 | |
| CDA1031493 | 12200 | 12200 |
Solved! Go to Solution.
Hi, @shri0025
You can try the following methods. Adding an index column in the Power Query.
Dax column:
Column = Var _minindex=CALCULATE(MIN('Table'[Index]),FILTER('Table',[Gate entry]=EARLIER('Table'[Gate entry])))
Return
IF([Index]=_minindex,[Freight Amount])
Is this the result you expect? Please see the attached document.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi, @shri0025
You can try the following methods. Adding an index column in the Power Query.
Dax column:
Column = Var _minindex=CALCULATE(MIN('Table'[Index]),FILTER('Table',[Gate entry]=EARLIER('Table'[Gate entry])))
Return
IF([Index]=_minindex,[Freight Amount])
Is this the result you expect? Please see the attached document.
Best Regards,
Community Support Team _Charlotte
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
pls try this
let
Source = Table.FromRows(Json.Document(Binary.Decompress(Binary.FromText("i45WcnZxNDQwNjSyNFbSUTI0sjA1UIrVISxsARY2MKCbsLGxIQnCJoYQYUPihI1MaCdsYQQJweEtDE0nRiDhWAA=", BinaryEncoding.Base64), Compression.Deflate)), let _t = ((type nullable text) meta [Serialized.Text = true]) in type table [#"Gate entry" = _t, #"Freight Amount" = _t]),
#"Changed Type" = Table.TransformColumnTypes(Source,{{"Gate entry", type text}, {"Freight Amount", Int64.Type}}),
#"Grouped Rows" = Table.Group(#"Changed Type", {"Gate entry"}, {{"Count",
each Table.AddIndexColumn(_ , "indx",1,1)}}),
#"Removed Other Columns" = Table.SelectColumns(#"Grouped Rows",{"Count"}),
#"Expanded Count" = Table.ExpandTableColumn(#"Removed Other Columns", "Count", {"Gate entry", "Freight Amount", "indx"}, {"Gate entry", "Freight Amount", "indx"}),
#"Added Custom" = Table.AddColumn(#"Expanded Count", "Result", each if[indx] =1 then [Freight Amount] else 0),
#"Removed Columns" = Table.RemoveColumns(#"Added Custom",{"indx"})
in
#"Removed Columns"
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 40 | |
| 38 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 68 | |
| 65 | |
| 30 | |
| 26 | |
| 25 |