Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have the following table:
I'm trying to create a custom column which sums Hoeveelheid for items with the same SolutionID. So far I've come up with:
Column = SUMX(FILTER(tbl_SolutionChemicals;tbl_SolutionChemicals[SolutionID]=tbl_SolutionChemicals[SolutionID]);tbl_SolutionChemicals[Hoeveelheid])
But this returns the sum of all Hoeveelheid rows. Can anyone help me with this?
Solved! Go to Solution.
<p>Hello,</p>
<p> </p>
<p>I have the following table:</p>
<p> </p>
<p> </p>
<p><a href="http://nl.tinypic.com?ref=5ukz0l" target="_blank"><img src="http://i67.tinypic.com/5ukz0l.jpg" border="0" alt="Image and video hosting by TinyPic"></a></p>
<p> </p>
<p>I'm trying to create a custom column which sums Hoeveelheid for items with the same SolutionID. So far I've come up with: </p>
<p> </p>
<p>Column = SUMX(FILTER(tbl_SolutionChemicals;tbl_SolutionChemicals[SolutionID]=tbl_SolutionChemicals[SolutionID]);tbl_SolutionChemicals[Hoeveelheid])</p>
<p> </p>
<p>But this returns the sum of all Hoeveelheid rows. Can anyone help me with this?</p>
Dear @Wildglen
Please try this:
Column= CALCULATE(SUM(tbl_SolutionChemicals[Hoeveelheid]), ALLEXCEPT(tbl_SolutionChemicals, tbl_SolutionChemicals[SolutionID]) )
Hi,
i am assuming that you want to create a calculated column formuls in the PowerPivot. If that be the case, then try this
=CALCULATE(SUM(tbl_SolutionChemicals[Hoeveelheid]),FILTER(tbl_SolutionChemicals,tbl_SolutionChemicals[SolutionID]=EARLIER(tbl_SolutionChemicals[SolutionID])))
Hope this helps.
You can try
custom column = CALCULATE ( SUM ( tbl_SolutionChemicals[Hoeveelheid] ), ALLEXCEPT ( tbl_SolutionChemicals, tbl_SolutionChemicals[solutionid] ) )
However, instead of a calculated column, I'd suggest you create a measure which would have more interaction among visuals.
Hi,
i am assuming that you want to create a calculated column formuls in the PowerPivot. If that be the case, then try this
=CALCULATE(SUM(tbl_SolutionChemicals[Hoeveelheid]),FILTER(tbl_SolutionChemicals,tbl_SolutionChemicals[SolutionID]=EARLIER(tbl_SolutionChemicals[SolutionID])))
Hope this helps.
Dear @Wildglen
Please try this:
Column= CALCULATE(SUM(tbl_SolutionChemicals[Hoeveelheid]), ALLEXCEPT(tbl_SolutionChemicals, tbl_SolutionChemicals[SolutionID]) )
<p>Hello,</p>
<p> </p>
<p>I have the following table:</p>
<p> </p>
<p> </p>
<p><a href="http://nl.tinypic.com?ref=5ukz0l" target="_blank"><img src="http://i67.tinypic.com/5ukz0l.jpg" border="0" alt="Image and video hosting by TinyPic"></a></p>
<p> </p>
<p>I'm trying to create a custom column which sums Hoeveelheid for items with the same SolutionID. So far I've come up with: </p>
<p> </p>
<p>Column = SUMX(FILTER(tbl_SolutionChemicals;tbl_SolutionChemicals[SolutionID]=tbl_SolutionChemicals[SolutionID]);tbl_SolutionChemicals[Hoeveelheid])</p>
<p> </p>
<p>But this returns the sum of all Hoeveelheid rows. Can anyone help me with this?</p>
User | Count |
---|---|
77 | |
74 | |
42 | |
32 | |
28 |
User | Count |
---|---|
100 | |
93 | |
52 | |
50 | |
48 |