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

Level up your Power BI skills this month - build one visual each week and tell better stories with data! Get started

Reply
niemis
Helper I
Helper I

How many ServiceNow Incidents do not have a knowledge article attached?

I am trying to create two reports, one that counts the number of Incidents with knowledge article(s) attached, and one that counts the number of Incidents without knowledge attached.  

 

I'm using 2 tables, the Incident and the m2m_kb_task table.  The relationship is a many to many from the m2m_kb_task/task to incident/sys_id with cross filter in both directions. 

 

I have been trying multiple measures but I am missing something.  It seems no matter what I try, I am only getting counts for incidents that have knowledge attached. 

 

I am hoping someone can help me see where I am going wrong.  I would greatly appreciate it.  

 

Here is one example of a measure I'm using:  

 

Number of Incidents without Knowledge Articles =
COUNTROWS(
    FILTER(
        incident,
        ISBLANK(CALCULATE(
            DISTINCTCOUNT(m2m_kb_task[task]),
            RELATEDTABLE(m2m_kb_task)
        ))
    )
)
1 ACCEPTED SOLUTION
bhanu_gautam
Super User
Super User

@niemis , Create two measure

Measure for Incidents with Knowledge Articles:DAX
Number of Incidents with Knowledge Articles =
CALCULATE(
DISTINCTCOUNT(incident[sys_id]),
NOT(ISBLANK(m2m_kb_task[task]))
)

 

Measure for Incidents without Knowledge Articles:

DAX
Number of Incidents without Knowledge Articles =
CALCULATE(
DISTINCTCOUNT(incident[sys_id]),
ISBLANK(m2m_kb_task[task])
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






View solution in original post

2 REPLIES 2
niemis
Helper I
Helper I

@bhanu_gautam Thank you so much.  I also tried something similar to this, and the count was blank.  It could be very well that ALL incidents have at least one knowledge article attached.  

 

Sally

bhanu_gautam
Super User
Super User

@niemis , Create two measure

Measure for Incidents with Knowledge Articles:DAX
Number of Incidents with Knowledge Articles =
CALCULATE(
DISTINCTCOUNT(incident[sys_id]),
NOT(ISBLANK(m2m_kb_task[task]))
)

 

Measure for Incidents without Knowledge Articles:

DAX
Number of Incidents without Knowledge Articles =
CALCULATE(
DISTINCTCOUNT(incident[sys_id]),
ISBLANK(m2m_kb_task[task])
)




Did I answer your question? Mark my post as a solution! And Kudos are appreciated

Proud to be a Super User!




LinkedIn






Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Users online (8,485)