Forum Discussion
Missing data due to a filter
Hi,
I would like to count data basing on the Category and Status during the current year.
The data is displayed correctly but I have 1 missing entry, that was created during the last year.
I created a mesure:
Categories =
VAR _var = CALCULATE(
COUNTROWS(Problems),
USERELATIONSHIP(Problems[Category], Categories[category_name])
)
RETURN
IF(ISBLANK(_var), 0, _var)
I have 1 table named Calendar and another 1 named Problems. The active relationship between these tables is related to Created On field in the Problems table (I think that is the reason for my issue).
The missing data is related to a problem created on 2021 but resolved on 2022. I need to show it. How can I do that?
1 Reply
- parry2kSuper User
medlalami I guess the relationship between calendar and resolved date is inactive and you need to use userelationship
Categories = VAR _var = CALCULATE( COUNTROWS(Problems), USERELATIONSHIP(Problems[Category], Categories[category_name]), USERELATIONSHIP(Problems[ResolveDate], CalendarTable[Date]) ) RETURN IF(ISBLANK(_var), 0, _var)✨ Follow us on LinkedIn and to our YouTube channel
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!