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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare 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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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