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

Earn the coveted Fabric Analytics Engineer certification. 100% off your exam for a limited time only!

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
April AMA free

Microsoft Fabric AMA Livestream

Join us Tuesday, April 09, 9:00 – 10:00 AM PST for a live, expert-led Q&A session on all things Microsoft Fabric!

March Fabric Community Update

Fabric Community Update - March 2024

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