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
Anonymous
Not applicable

How to determine dual registrations

Hi,

 

I am new to Power BI and at the moment trying to figure out how to detemine dual registrations of teacher data that we have on CRM online.

 

We've got 'Registration' data of teachers. Some are only 'teachers' and some are only 'ECTs's. But some are 'Dual's meaning they have bot 'Teacher' and 'ECT' registrations.

 

What I want is a new column  ( like "Reg Type_2" as depicted below)  indicating whether a teacher is purely a Teacher/ ECT or a Dual. If they are 'dual' they have two registartions records in the registration table with their respective registration type under the same registration number. 

Pls see below a sample data set.

ContactReg NumberReg TypeReg type_2
Aaron707012TeacherDual
Aaron707012ECTDual
Gillespie701252TeacherTeacher
Harper704265ECTECT
Houben702153TeacherDual
Houben702153ECTDual

 

I want to use this column is further analysis. 

 

Thank you very much!

Losh

 

 

 

2 ACCEPTED SOLUTIONS
ChandeepChhabra
Impactful Individual
Impactful Individual

@Anonymous : Please try this calculated column formula

 

=IF(COUNTROWS(FILTER(ALL(Data),Data[Reg Number]=EARLIER(Data[Reg Number])))>1,"Dual",Data[Reg Type])

  

 Capture.PNG

 

You download the powerpivot file here

 

Hope this helps

View solution in original post

Anonymous
Not applicable

Thanks so much! very much apprecaite your help 🙂

 

Very impressed what a small formula can do. 

Could you kindly direct me to learn much more on these kind of furmulae?  

What does this specific one do in this particular instance?

View solution in original post

4 REPLIES 4
ChandeepChhabra
Impactful Individual
Impactful Individual

@Anonymous : Please try this calculated column formula

 

=IF(COUNTROWS(FILTER(ALL(Data),Data[Reg Number]=EARLIER(Data[Reg Number])))>1,"Dual",Data[Reg Type])

  

 Capture.PNG

 

You download the powerpivot file here

 

Hope this helps

Anonymous
Not applicable

Thanks so much! very much apprecaite your help 🙂

 

Very impressed what a small formula can do. 

Could you kindly direct me to learn much more on these kind of furmulae?  

What does this specific one do in this particular instance?

@Anonymous You are welcome

 

You can take a look at microsoft documentation on how dax expressions work 

https://msdn.microsoft.com/en-us/query-bi/dax/dax-function-reference

Anonymous
Not applicable

Thanks a lot again! 🙂

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.