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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
EpicTriffid
Helper IV
Helper IV

Remove blanks to put similar categories on same row

I have the data, pictured below, that I was to condense down so that the records with the same category (Column 1), are clumped together. You can see how each row is it's own record. So instead of:

 

RoleDept 1 NameDept 1 HoursDept 2 NameDept 2 Hours
Admissions TutorName 120  
Admissions Tutor  Name 240
Admissions TutorName 360  
Admissions Tutor  Name 480

 

we have

RoleDept 1 NameDept 1 HoursDept 2 NameDept 2 Hours
Admissions TutorName 120Name 240
Admissions TutorName 240Name 480

 

Any ideas?

 

This is what my data currently looks like:

 

EpicTriffid_0-1700566256362.png

 

5 REPLIES 5
Anonymous
Not applicable

Hi @EpicTriffid ,

If your idea is like what I said before, then I'm sorry, this feature is not available at the moment.
But I can offer you another solution. You can use DAX to create a new table and extract the different data separately according to the Dept n Name classification:

Dept 1 Name = 
FILTER('Table','Table'[Dept 1 Name] <> BLANK())
Dept 2 Name = 
FILTER('Table','Table'[Dept 2 Name] <> BLANK())

The results are shown below:

vjunyantmsft_0-1700704589155.pngvjunyantmsft_1-1700704602062.png

 

Best Regards,

Dino Tao

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



Anonymous
Not applicable

Hi @EpicTriffid 

I'm guessing you wish to put this form:

vjunyantmsft_0-1700702686559.png

Convert to this table:

vjunyantmsft_1-1700702718287.png

But over here maybe you wrote it wrong?

vjunyantmsft_2-1700702768532.png

It should be Name3 60?

Best Regard,
Dino Tao

AnalyticPulse
Super User
Super User

you can maintain single column for the department and reocrd department 1 and 2 in that column. same for the hours and name column. this will remove nulls from your data.

If this helped, Subscribe AnalyticPulse on YouTube for future updates:
https://www.youtube.com/@AnalyticPulse
https://instagram.com/analytic_pulse
https://analyticpulse.blogspot.com/

subscribe to Youtube channel For fun facts:
https://www.youtube.com/@CogniJourney

Hi @AnalyticPulse 

 

I'm not entirely sure what you mean?

keep yout data in below format for above table 

Role    DeptName   dept Hour

im confused why there are two column for same kind of attribute. like if you can maintain departments in same column. not sure what you want to achive here. 

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors