Search code examples
powerbidistinctpowerbi-desktopdistinct-values

Getting a total of the (filtered) unique articles in a table visualization in PowerBi


I have this table-visualization in PowerBi formed by using data from diverse tables and with several filters. How do I get a total-row which shows the amount of unique articles in this visualization?

In the screenshot there's a piece of this visualization.

enter image description here

According to this screenshot the total-row should come up with "10", because of the 10 unique 'artnr'. Preferably it should change as soon as the filters are set differently.


Solution

  • msta42a gave a right answer. I used it to solve my question.

    UniqueArticle = calculate(distinctcount(Table[artnr]), ALL(Table[artnr]))