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
THENNA_41
Post Partisan
Post Partisan

blank value replace it from another column value

I have the two table Global Column and  local BOM. i have created  below measure to get ReferenceBom value. its return the correct vallue . I want replace  the blank value  in reference bom measure with TYPE OF CHECK column value. How to modify the below measure .please any one help me . 

 

 

Reference BOM-Local =
CALCULATE (
    FIRSTNONBLANK ( 'local BOMs'[Reference BOM], 0 ),
    FILTER (
        ALL ( 'local BOMs' ),
        'local BOMs'[item code] = 'global BOM '[item code]
    ))

 

 

 

 

global BOM:

 

  Item Code             Item Type (Product Variant BOM)                                     TYPE OF CHECK 

  FA009644.07                60.T634                                                                            NULL

 FA009644.07           FA009644.07-SHIPPINGCASE-CAS                                      CASE-70

  FA009644.07          FA009644.07-BUNDLEPAPER-OUT                                      PAPER-63

                                  

 

 

local BOMs :

 

Item Code                    ReferenceBOM                   

  FA009644.07                60.T634

 

 

Expected Output:

 

  Item Code             Item Type (Product Variant BOM)          ReferenceBom                           TYPE OF CHECK 

  FA009644.07                60.T634                                                 60.T634                                       NULL

 FA009644.07           FA009644.07-SHIPPINGCASE-CAS            CASE-70                                     CASE-70

  FA009644.07          FA009644.07-BUNDLEPAPER-OUT            PAPER-63                                    PAPER-63

1 ACCEPTED SOLUTION
sebouier
Frequent Visitor

Try this ?

 

ReferenceBom = IF(ISBLANK(TYPE OF CHECK), [Item Type], [TYPE OF CHECK])

 

View solution in original post

1 REPLY 1
sebouier
Frequent Visitor

Try this ?

 

ReferenceBom = IF(ISBLANK(TYPE OF CHECK), [Item Type], [TYPE OF CHECK])

 

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.

Top Solution Authors