Marmaduke0703
New Member
- Joined
- Jan 25, 2021
- Messages
- 13
- Office Version
- 365
- Platform
- Windows
Hi all!
I have an issue where a filter isn’t appearing to have any impact on a table/measure and I’m not sure how to fix it. It feels like this should be a simple measure…
Unfortunately I’m not able to share the dataset so I’ll explain as best as I can ☹
Average completion % =
calculate(
COUNT('Percentage Report Log'[Completion percentage]),
filter('Percentage Report Log',
'Percentage Report Log'[Updated] = [Last Updated] && 'Percentage Report Log'[Key] = related('Manual Updates'[Ref.]))
)
** using count in place of average initially to check it is filtering as expected
For context, I’m trying to work out the average completion % by a group as specified in another column (“Release version”).
The completion % itself has been added to the ‘Percentage Report Log’ as a merged query from a separate table (I have also tried writing as a lookup measure but it didn’t help here).
The ‘Percentage Log Report’ is a table that stores information on a number of tickets/ref numbers and has a unique ID created using the ticket number and the date updated (tickets have multiple updates, hence the need to match on [Last Updated]). I’ve tested the filter with simple text equalities and it’s fine. I’ve then tested both parts of the current filter separately and neither have any effect (combined or individually).
I have an issue where a filter isn’t appearing to have any impact on a table/measure and I’m not sure how to fix it. It feels like this should be a simple measure…
Unfortunately I’m not able to share the dataset so I’ll explain as best as I can ☹
Average completion % =
calculate(
COUNT('Percentage Report Log'[Completion percentage]),
filter('Percentage Report Log',
'Percentage Report Log'[Updated] = [Last Updated] && 'Percentage Report Log'[Key] = related('Manual Updates'[Ref.]))
)
** using count in place of average initially to check it is filtering as expected
For context, I’m trying to work out the average completion % by a group as specified in another column (“Release version”).
The completion % itself has been added to the ‘Percentage Report Log’ as a merged query from a separate table (I have also tried writing as a lookup measure but it didn’t help here).
The ‘Percentage Log Report’ is a table that stores information on a number of tickets/ref numbers and has a unique ID created using the ticket number and the date updated (tickets have multiple updates, hence the need to match on [Last Updated]). I’ve tested the filter with simple text equalities and it’s fine. I’ve then tested both parts of the current filter separately and neither have any effect (combined or individually).
- [Last Update] is a measure that returns the latest date/time value in the ‘Updated’ column and is dynamic based on a selected date – this works when displaying the result in a matrix and as part of other Lookup functions in other measures but has no effect in this filter.
- The Key / Ref. equality criteria has also been used in other measures and works fine there but has no effect here. There is a one (Ref.) to many (Key) relationship between these fields.