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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Fill in blanks from other rows

hello community 

i have two columns the first column have the same value several times , the next column can have two values one of them is a blank i want to fill this blank with other values from other rows if exist a non blank value if no to leave it a blank as it is , 
anyway to do that ?
thanks 

Hifni93_0-1662115881364.png

 

1 ACCEPTED SOLUTION

@Anonymous 
In this case we call the Date column as a filter safe column. Filter safe columns shall be added to the ALLEXCEPT argument inside CALCULATE:

Drop Measure =
CALCULATE ( 
     MAX ( TableName[drop] ), 
     ALLEXCEPT ( TableName, TableName[phone], TableName[Creation Date] ) 
)

View solution in original post

8 REPLIES 8
tamerj1
Super User
Super User

Hi @Anonymous 

you can use

Drop Measure =
CALCULATE ( MAX ( TableName[drop] ), ALLEXCEPT ( TableName, TableName[phone] ) )

Anonymous
Not applicable

thanks tamer it worked but i still see some annomalies for example after i ordered by phone number,
the phone number that ends with 3392 is filled even thought there is no other match for it so it should remain blank

Hifni93_0-1662118086487.png

 

@Anonymous 
That is strange. It should not happen. 
Both columns are from the same table? Seems to a filter context issue. Also you may check if same number exist but preceded by a space.

Anonymous
Not applicable

well actually i put some filters on the previous Vizz one of them was the date for example i took the period of August and there was only one input for that phone number , but in june there was other enteries , so can i modify the formula for example to take these filters into considerations ?

Hifni93_0-1662120998167.png

 

@Anonymous 
In this case we call the Date column as a filter safe column. Filter safe columns shall be added to the ALLEXCEPT argument inside CALCULATE:

Drop Measure =
CALCULATE ( 
     MAX ( TableName[drop] ), 
     ALLEXCEPT ( TableName, TableName[phone], TableName[Creation Date] ) 
)
Anonymous
Not applicable

well i added two columns as filter the results now are much better , but the date filter is working by day , instead i need the filter to be by the specific month and the other campaign filter to be to specific campaigns can i modify these filters , thank you sooooo much for your patients we are almost there 

Hifni93_0-1662122584453.png

 

@Anonymous 
Usually these columns ad there in the Date table. Since you don't have a date table you can add a new column to your fact table.
Year Month = YEAR ( [Creation Date] ) * 100 + MONTH ( [Creation Date] )

Then you can add this column to ALLEXCEPT instead of the date.

Anonymous
Not applicable

well that worked , thaaanks Alooooot @tamerj1 

Hifni93_0-1662124032429.png

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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