Forum Discussion
shri0025
2 years agoHelper II
create new Column
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 ...
- 2 years ago
Based on your description, I created data to reproduce your scenario. The pbix file is attached in the end.
IN DAX
https://1drv.ms/u/s!AiUZ0Ws7G26Rixu4oV5LW2VcErUY?e=4oFKH2 - Anonymous2 years ago
Hi shri0025 ,
Please try below steps:
1. add an index column in Power Query pane
2. create a new column with below dax formula
Column = VAR cur_entry = [Gate entry] VAR cur_index = [Index] VAR tmp = FILTER ( 'Table', [Gate entry] = cur_entry ) VAR _a = MINX ( tmp, [Index] ) RETURN IF ( cur_index = _a, [Freight Amount], 0 )Please refer the attached .pbix file.
Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
shri0025
2 years agoHelper II
Hi
Can you see me My out put column If Multipule Gate entery then Freight AMount single and 0
| Gate entry | Freight Amount | Create Column (Need this Result) |
| CDA1031293 | 12850 | 12850 |
| CDA1031293 | 12850 | 0 |
| CDA1031298 | 12000 | 1200 |
| CDA1031298 | 12000 | 0 |
| CDA1031298 | 12000 | 0 |
| CDA1031298 | 12000 | 0 |
| CDA1031298 | 12000 | 0 |
| CDA1031331 | 12000 | 12000 |
| CDA1031331 | 12000 | 0 |
| CDA1031411 | 12100 | 12100 |
| CDA1031411 | 12100 | 0 |
| CDA1031424 | 12100 | 12100 |
| CDA1031424 | 12100 | 0 |
| CDA1031424 | 12100 | 0 |
| CDA1031424 | 12100 | 0 |
| CDA1031482 | 12800 | 12800 |
| CDA1031482 | 12800 | 0 |
| CDA1031482 | 12800 | 0 |
| CDA1031482 | 12800 | 0 |
| CDA1031482 | 12800 | 0 |
| CDA1031482 | 12800 | 0 |
| CDA1031482 | 12800 | 0 |
| CDA1031482 | 12800 | 0 |
| CDA1031482 | 12800 | 0 |
| CDA1031482 | 12800 | 0 |
| CDA1031493 | 12200 | 12200 |