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
vroy
New Member

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 @vroy 
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 @vroy 
Please create a new calculated column 

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

Hi @vroy 

 

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors