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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
maurcollins
Helper II
Helper II

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 @maurcollins 

 

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
maurcollins
Helper II
Helper II

Thank you

Mikelytics
Resident Rockstar
Resident Rockstar

Hi @maurcollins 

 

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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