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
nickhukriede
Frequent Visitor

Fill Blanks of Column Based on Value of Another Column

I have the following setup in my table:

 

Tag1Dec (numerical data) and a FishSpecies associated with that data. The problem is we may only have 1 fish species but many duplicate Tag1Dec. I am attempting to fill the FishSpecies by already previously known numbers from Tag1Dec. Image and explanation below:

 

nickhukriede_0-1633473768112.png

As you can see I have a FishSpecies = "LL" for the Tag1Dec = 989001033212881. There are multiple rows with the same Tag1Dec value and I would like to populate the FishSpecies with the corresponding "LL" that is in the first row.

 

1 ACCEPTED SOLUTION
v-easonf-msft
Community Support
Community Support

Hi,  @nickhukriede 

You can replace all blank value with null and then fill down cell values.

68.png


You can also try to create a calculated column as below:

FishSpecies2 =
CALCULATE (
    MAX ( 'Table'[FishSpecies] ),
    ALLEXCEPT ( 'Table', 'Table'[Tag1Dec] )
)

66.png

 

Best Regards,
Community Support Team _ Eason

View solution in original post

2 REPLIES 2
v-easonf-msft
Community Support
Community Support

Hi,  @nickhukriede 

You can replace all blank value with null and then fill down cell values.

68.png


You can also try to create a calculated column as below:

FishSpecies2 =
CALCULATE (
    MAX ( 'Table'[FishSpecies] ),
    ALLEXCEPT ( 'Table', 'Table'[Tag1Dec] )
)

66.png

 

Best Regards,
Community Support Team _ Eason

Hi @v-easonf-msft,

Thanks for your reply, I found this solution work perfectly. Could you please help explain the logic behind it as I am not familiar with these DAX functions? Thanks a lot!

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.