Forum Discussion
Dax for matrix table
- 1 year ago
Total SQL No Feedback =
VAR Parent = SELECTEDVALUE('FeedbackData'[checking_parent])
VAR JiraCount = CALCULATE(DISTINCTCOUNT('FeedbackData'[jira_id]), 'FeedbackData'[checking_parent] = Parent)
VAR SQLWeight = LOOKUPVALUE('TaskWeighting'[SQL Weighting], 'TaskWeighting'[Checking Parent], Parent)
RETURN (JiraCount * SQLWeight) - [Total SQL Feedback]
✅ Counts distinct JIRA_IDs per Checking Parent
✅ Multiplies by SQL Weighting from TaskWeighting
✅ Subtracts your existing Total SQL Feedback measure
Total SQL No Feedback =
VAR Parent = SELECTEDVALUE('FeedbackData'[checking_parent])
VAR JiraCount = CALCULATE(DISTINCTCOUNT('FeedbackData'[jira_id]), 'FeedbackData'[checking_parent] = Parent)
VAR SQLWeight = LOOKUPVALUE('TaskWeighting'[SQL Weighting], 'TaskWeighting'[Checking Parent], Parent)
RETURN (JiraCount * SQLWeight) - [Total SQL Feedback]
✅ Counts distinct JIRA_IDs per Checking Parent
✅ Multiplies by SQL Weighting from TaskWeighting
✅ Subtracts your existing Total SQL Feedback measure