This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
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?
@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)
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!
Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!
Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo
If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤
Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 28 | |
| 23 | |
| 22 | |
| 16 | |
| 16 |
| User | Count |
|---|---|
| 60 | |
| 35 | |
| 28 | |
| 22 | |
| 21 |