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

HOW TO FIND "MISSING" VALUES?

Hello all!!

I am creating a data validation report. 

I have two tables - Source and Target. 

They have a 1-1 relationship. 

 

I need to create a table visual with the comparison for each field between them and create a Validation with 4 scenarios. 

For "matching" and "not matching", I am good. But I can't find a way to define when is missing in one or another. Can someone please help me?

 

I can see the data missing in one or another in the table visual by selecting "Show items with no data" option.

 

Field A SourceField A TargetValidation
AAAAAAAAMatching
AABBNot Matching
AA Missing in Target
 BBMissing in Source

 

1 ACCEPTED SOLUTION
v-junyant-msft
Community Support
Community Support

Hi @corbs ,

Since you did not provide sample data, I cannot determine if the method is correct:
You can try this DAX:

Validation = 
IF(
    ISBLANK(Source[Field A]), "Missing in Source",
    IF(
        ISBLANK(Target[Field A]), "Missing in Target",
        IF(
            Source[Field A] = Target[Field A], "Matching",
            "Not Matching"
        )
    )
)

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
v-junyant-msft
Community Support
Community Support

Hi @corbs ,

Since you did not provide sample data, I cannot determine if the method is correct:
You can try this DAX:

Validation = 
IF(
    ISBLANK(Source[Field A]), "Missing in Source",
    IF(
        ISBLANK(Target[Field A]), "Missing in Target",
        IF(
            Source[Field A] = Target[Field A], "Matching",
            "Not Matching"
        )
    )
)

Best Regards,
Dino Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

amitchandak
Super User
Super User

@corbs , Can you share the source table? I am thinking of a Full outer join in Power query merge followed by custom column or a cross-join

 

Merge Queries, Why not Merge the code: https://youtu.be/YOFs39RCPfQ

Power Query Cross Join| Cartesian Product: https://youtu.be/7MvROGObBYk

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.