Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi
I want to add the weight column if they have same PO number.
For Eg.
The same PO have the weight categorized at item level. Below is a sample of data.
I want the total weight for each PO in a separate column So that later I can filter by removing duplicates.(I need the remove duplicates step because there are other columns in the data)
Initial Data
Required View
Solved! Go to Solution.
If you are looking to do this with M via the Query Editor, then you would just use Group By in the Transform tab and group by the PO#, adding one Sum column to get the total sum of weight and one "All Rows" column to bring back in your weight column.
You could then expand your AllRows column to bring back in the columns that you need.
Your final product would look like this:
You should be able to bring back all other columns when you expand the new AllRows column right after the Group Rows step.
This screenshot should help... Just click the double arrows on the AllRows column, and then select all other columns that you want to bring back in.
If you are looking to do this with M via the Query Editor, then you would just use Group By in the Transform tab and group by the PO#, adding one Sum column to get the total sum of weight and one "All Rows" column to bring back in your weight column.
You could then expand your AllRows column to bring back in the columns that you need.
Your final product would look like this:
@drewlewis15 When I do this this removes the other columns in data. I have other column in the data as well.
@Anonymous
May be you could use a DAX Calculated Column
Wt = CALCULATE ( SUM ( Table1[Weight] ), ALLEXCEPT ( Table1, Table1[PO#] ) )
@Zubair_Muhammad Correct me If I'm worng
We cannot see records if we have a DAX measure in our visual right?
You should be able to bring back all other columns when you expand the new AllRows column right after the Group Rows step.
This screenshot should help... Just click the double arrows on the AllRows column, and then select all other columns that you want to bring back in.
User | Count |
---|---|
82 | |
78 | |
67 | |
46 | |
45 |
User | Count |
---|---|
105 | |
44 | |
39 | |
39 | |
39 |