Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
medlalami
Helper I
Helper I

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.

powerbi.png

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).

relationship.png

 

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 1
parry2k
Super User
Super 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 YouTube.gif 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!



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.

Helpful resources

Announcements
March PBI video - carousel

Power BI Monthly Update - March 2025

Check out the March 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

March2025 Carousel

Fabric Community Update - March 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors