Quantcast
Channel: Excel IT Pro Discussions forum
Viewing all articles
Browse latest Browse all 11829

PowerPivot calculated columns

$
0
0

Let's suppose that we have an alone table with materiall family and quantity.

MAT FAM QUA

a1    F1     5

a2    F1     6

a3    F2     1

a4    F2     3

a5    F3     8

Since I can add a calculated column, which in every cell should add the total estoc of the family of the article of the row? Therefore values repeated on having been articles of the same family. The result that I need is:

MAT  FAM  QUA  TOTAL

a1      F1     5        11

a2      F1     6        11

a3      F2     1          4

a4      F2     3          4

a5      F3     8          8

I need to add this column, as column calculated in PowerPivot's table, to be able to continue doing calculations. Therefore i need some formula in DAX to calculate subtotal these. To do it in a dynamic table me is not sufficient. I have tried with SUMX, RELATED, VALUES, SUMMARIZE.... I go many hours looking for a solution and I do not meet on her. Is it possible with DAX, to do a calculation on some rows of the same table, to guard them in a calculated column?

Thank you for the help. Regards


Viewing all articles
Browse latest Browse all 11829

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>