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 together,
i need help on a measure to calculate a quote. I have a table like this:
To get the quote i need the distinctcount article where the invoicetype is "nachorder". This is no problem
Hi @morizf
I suggest to create a calculated column to exclude values first:
IsValid Column =
IF (
CALCULATE (
COUNTROWS(MyTable),
ALLEXCEPT ( MyTable, MyTable[Article])
)
<> CALCULATE(COUNTROWS(MyTable), ALLEXCEPT(MyTable, MyTable[Article], MyTable[invoicetype])),
FALSE(),
IF (
CALCULATE (
VALUES ( MyTable[invoicetype] ),
ALLEXCEPT ( MyTable, MyTable[Article], MyTable[invoicetype] )
)
<> "nachorder",
FALSE(),
TRUE ()
)
)
And later on, count over this column:
Measure = CALCULATE(DISTINCTCOUNT(MyTable[Article]),MyTable[IsValid Column]=TRUE())
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
23 | |
8 | |
7 | |
6 | |
6 |
User | Count |
---|---|
28 | |
12 | |
10 | |
10 | |
6 |