Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more
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 March 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
92 | |
66 | |
56 | |
46 | |
45 |