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 want to create a new indicator in my table to calculate the number of surveys by the year of the last survey date.
I tried to create a measure to identify the last date of the survey and then do a: calculate(count('barometrie_à_froid'[External Key]),'barometrie_à_froid'[Survey Date]=year([a year date of survey]))
But this does not work
Hi @Anonymous
The good practice is to first create a new calculated column that calculates the year then use it in the measure. Howeve, you may also use
=
CALCULATE (
COUNT ( 'barometrie_à_froid'[External Key] ),
ALLEXCEPT ( 'barometrie_à_froid', 'barometrie_à_froid'[Survey Date].YEAR )
)
User | Count |
---|---|
25 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
9 | |
7 |