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
choponbraves
Regular Visitor

Replace all Blanks Based on Associated Cell Value

Hello Power BI gurus,

 

I need some help with this roadblock and greatly appreciate anyone's help.

The essential issue is simple-- i need to replace the blank values in 'ContractValue' and 'Misc' with their associated non-blanks anytime there is one present within the same column.  'ContractValue' and 'Misc' values should be uniform for each set of Project Id's, regardless of their Service Item.  In other words, 'ContractValue' should remain 0 in this instance while 'Misc' should populate with 8,100 for each row with a matching 'Project ID' (which is all of them in the example provided).  So there will only be one value for Misc or ContractValue whenever one exists for a project ID.  Can someone provide guidance on how to accomplish this?


image.png

1 ACCEPTED SOLUTION
Fowmy
Super User
Super User

@choponbraves 

I assume Misc and Contract Value are measured? Create the following measures for each as follows

New Misc = 
MAXX(
    ALLEXCEPT(tablename, tablename[Project ID]),
    [Misc]
)
----------------------------------------------------------
New Contract Value= 
MAXX(
    ALLEXCEPT(tablename, tablename[Project ID]),
    [Contract Value]
)



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

View solution in original post

1 REPLY 1
Fowmy
Super User
Super User

@choponbraves 

I assume Misc and Contract Value are measured? Create the following measures for each as follows

New Misc = 
MAXX(
    ALLEXCEPT(tablename, tablename[Project ID]),
    [Misc]
)
----------------------------------------------------------
New Contract Value= 
MAXX(
    ALLEXCEPT(tablename, tablename[Project ID]),
    [Contract Value]
)



Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Fabric Monthly Update - May 2024

Check out the May 2024 Fabric update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.