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

Join us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.

Reply
Anonymous
Not applicable

Dax measure to return missing text values in column within single table

Hi, 

 

I need to replicate the following Excel formula in Power BI.

vroy_4-1657561284772.png

 

I have been trying a few things based on what I could find on the forum, but unfortunately nothing has worked so far. 

 

The problem I'm facing is that the dataflow I'm working with does not carry forward some of the Province values for certain types of items (as shown in the example above). I am looking for a function that would allow me to carry forward those missing Province values and fill in the blanks.

 

Thanks for your help!

1 ACCEPTED SOLUTION
tamerj1
Super User
Super User

Hi @Anonymous 
Please create a new calculated column 

Result =
MAXX (
    CALCULATETABLE ( TableName, ALLEXCEPT ( TableName, TableName[OrderID] ) ),
    TableName[Province]
)

View solution in original post

2 REPLIES 2
tamerj1
Super User
Super User

Hi @Anonymous 
Please create a new calculated column 

Result =
MAXX (
    CALCULATETABLE ( TableName, ALLEXCEPT ( TableName, TableName[OrderID] ) ),
    TableName[Province]
)
daXtreme
Solution Sage
Solution Sage

Hi @Anonymous 

 

This is one of the simplest data transformations that Power Query does for you out of the box. It's about one mouse click away... There is a transformation in PQ called---if I remember right---Fill Down. Just use this and you'll be finished.

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

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