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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Matt_JEM
Helper I
Helper I

List missing information in new table

Good day Everybody.

 

I have a table 'ArcSalesMove[CustomerPoNumber] directly from our Syspro SQL server that contains all the CustomerPoNumbers in the system. Another table 'InvMovements'[CustomerPoNumber] have all the only the CustomerPoNumbers that is now in the factory.

 

How do I creat a new table thet will list both the 'ArcSalesMove[CustomerPoNumber] and 'InvMovements'[CustomerPoNumber] next to one another so that I can find the create a list of CustomerPoNumbers that is not in the factory.

 

I thank you in advance for your assistance.

 

Matt

1 ACCEPTED SOLUTION
johnt75
Super User
Super User

You can create a table of PO numbers not in the factory with

Not in factory =
VAR AllNumbers =
    DISTINCT ( 'ArcSalesMove'[CustomerPoNumber] )
VAR InFactory =
    DISTINCT ( 'InvMovements'[CustomerPoNumber] )
VAR Result =
    EXCEPT ( AllNumbers, InFactory )
RETURN
    Result

View solution in original post

2 REPLIES 2
Bibiano_Geraldo
Super User
Super User

Hi @Matt_JEM ,

Create a new table by this DAX:

PoNumbersNotInFactory = 
    EXCEPT (
        VALUES('ArcSalesMove'[CustomerPoNumber]),
        VALUES('InvMovements'[CustomerPoNumber])
    )

 

johnt75
Super User
Super User

You can create a table of PO numbers not in the factory with

Not in factory =
VAR AllNumbers =
    DISTINCT ( 'ArcSalesMove'[CustomerPoNumber] )
VAR InFactory =
    DISTINCT ( 'InvMovements'[CustomerPoNumber] )
VAR Result =
    EXCEPT ( AllNumbers, InFactory )
RETURN
    Result

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

May 2025 Monthly Update

Fabric Community Update - May 2025

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