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.
I gotta column with weekending dates and another coulumn with full name, so im trying use DAX to calculate distinct value of each full name with no of weeks,
I'm getting error with full name as text type cannot be used as true/false or text type cannot be used in filter with distinct count.
can anyone help me please.
I want output to be gareth 2 weeks, Darran 1 week (since 12/11/21 repeating so distinct count)
Solved! Go to Solution.
Measures don't have to be wrapped in CALCULATE as the engine does it automatically.
So, the final formula would be:
Nbweek = DISTINCTCOUNT( Weekending[WeekEnding] )
Hi @Anonymous
I tried those measures, it calculates distinctcount of weekending but not name, example it shows
Darren 7 weeks
Gareth 2 weeks
but i expect answer,
Daren 2 weeks (since 12/11/2021, 19/11/2021 only two days are ter)
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
13 | |
11 | |
9 | |
6 |