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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Identifying missing data

Good Morning

 

I need some help please with identifying where there is missing data in a table.

 

Example of the data is 

 

LearnerApplilcationCourse
101/01/2022A1
101/01/2022B1
201/01/2022B1
301/01/2022A2
301/01/2022B2


All learners should have a course beginning with an A, i need to idenitfy from the data the ones that dont.

So in the example above it would identify learner 2.

The applications will differ from those in the table.

 

Thank you for your help.

 

1 ACCEPTED SOLUTION
Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

Please try the following:

 

Base Table

Mikelytics_0-1670320321578.png

Mikelytics_1-1670320378124.png

Create a new Meausre

Mikelytics_3-1670320753848.png

 

CourseWithA = 
var var_numberOfCoursesWithA =
    SUMX(
        FactTable,
        IF(LEFT(FactTable[Course],1) ="A",1,0)
    )

RETURN
IF(var_numberOfCoursesWithA>0,1,0)

 

put learner and the measure into a visual

Mikelytics_4-1670320800796.png

you can also use the measure as a filter

Mikelytics_5-1670320841855.png

 

Best regards

Michael

-----------------------------------------------------

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!

@ me in replies or I'll lose your thread.

-----------------------------------------------------

LinkedIn

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Thank you

Mikelytics
Resident Rockstar
Resident Rockstar

Hi @Anonymous 

 

Please try the following:

 

Base Table

Mikelytics_0-1670320321578.png

Mikelytics_1-1670320378124.png

Create a new Meausre

Mikelytics_3-1670320753848.png

 

CourseWithA = 
var var_numberOfCoursesWithA =
    SUMX(
        FactTable,
        IF(LEFT(FactTable[Course],1) ="A",1,0)
    )

RETURN
IF(var_numberOfCoursesWithA>0,1,0)

 

put learner and the measure into a visual

Mikelytics_4-1670320800796.png

you can also use the measure as a filter

Mikelytics_5-1670320841855.png

 

Best regards

Michael

-----------------------------------------------------

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. Appreciate your thumbs up!

@ me in replies or I'll lose your thread.

-----------------------------------------------------

LinkedIn

 

 

------------------------------------------------------------------
Visit my blog datenhungrig which I recently started with content about business intelligence and Power BI in German and English or follow me on LinkedIn!

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

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

June 2025 community update carousel

Fabric Community Update - June 2025

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