Forum Discussion
CalexUK
3 years agoFrequent Visitor
Counting Text Values Across Multiple Dynamic Columns by User
Hi I have a Matrix Table as below, I want to count the total number of learning activitys then work out the completion percentage, for example here there are 7 learning outcomes in total and line 1 ...
- 3 years ago
Hi CalexUK
Should it be something like this?Result = VAR CurrentStatus = VALUES ( 'Table'[Status] ) VAR PercentCompleted = DIVIDE ( COUNTROWS ( FILTER ( 'Table', 'Table'[Status] = "Completed" ) ), COUNTROWS ( 'Table' ) ) RETURN IF ( HASONEVALUE ( 'Table'[UserID] ) && HASONEVALUE ( 'Table'[Programmes] ), CurrentStatus, PercentCompleted + 0 ) - 3 years ago
CalexUK
Perhaps somthing like "< Parameter" makes sense?
tamerj1
3 years agoCommunity Champion
Hi CalexUK
is everything is one source table? What is the dax measure code that is placed in the values of the matrix?
CalexUK
3 years agoFrequent Visitor
Hi Tamerj1
The Data is in a single table, there is no DAX measure, we are only using the Matris Visual to display the training course values (Completed, Not Completed)
Kindest Regards
Paul
- tamerj13 years agoCommunity Champion
Hi CalexUK
Should it be something like this?Result = VAR CurrentStatus = VALUES ( 'Table'[Status] ) VAR PercentCompleted = DIVIDE ( COUNTROWS ( FILTER ( 'Table', 'Table'[Status] = "Completed" ) ), COUNTROWS ( 'Table' ) ) RETURN IF ( HASONEVALUE ( 'Table'[UserID] ) && HASONEVALUE ( 'Table'[Programmes] ), CurrentStatus, PercentCompleted + 0 )