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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
sams84
New Member

Spilt up the blank columns in the other groups

Hello,

I am using a CSV file as my dataset, and I tried to make a group of one of my columns.

But that column has around 6000 blank records, and we decided to split up blank records in those 4 groups by 20% to group 30%, group 2 by 25%, and group 3 by 30%.

Is there any way to have this solution in Power BI?

Example:

Column name Company Location split up into groups (Asia, Europe, America, Africa), but 6000 records are blank, and we want to split up them with the above percentage into those groups.

 

Thanks

1 REPLY 1
ppm1
Solution Sage
Solution Sage

Probably a few ways to do this. One idea would be to generate a random number on the blank rows and then use thresholds consistent with your weights with nested if then else to assign those values. Since you have 6000 values, it should get close to your desired split.

 

Pat

Microsoft Employee

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors