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 have the following cummulative count measure whihc works fine:
Count =
CALCULATE (
DISTINCTCOUNT ( 'X Data'[Story ID] ),
FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) ),
USERELATIONSHIP ( 'Date'[Date], 'X Data'[_Story-Sprint Start] )
)
However I would like to SUM another column but only for the distinct values (so basically ignoring duplicate rows)
SUM =
CALCULATE (
SUM ( 'X Data'[Story Pints] ), `<-But only for the Distinct of Story ID`
FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) ),
USERELATIONSHIP ( 'Date'[Date], 'X Data'[_Story-Sprint Start] )
)
@zaza , Try like
SUM =
CALCULATE (
SUMX( Summarize('X Data','X Data'[Story ID] , 'X Data'[Story Pints]), [Story Pints] ), // `<-But only for the Distinct of Story ID`
FILTER ( ALLSELECTED ( 'Date' ), 'Date'[Date] <= MAX ( 'Date'[Date] ) ),
USERELATIONSHIP ( 'Date'[Date], 'X Data'[_Story-Sprint Start] )
)
User | Count |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
9 | |
6 |