Forum Discussion

vbourbeau's avatar
vbourbeau
Resolver II
6 years ago
Solved

Replace null value by 0 within a full outer join

Hi   look the below image... I want to get the future stock value. For that I have to add "stock" to future "transaction", it's giving me the balance. All work great but It's kind of full outer j...
  • Anonymous's avatar
    Anonymous
    6 years ago

    Hi vbourbeau ,

     

    Create 3 measures as below:

     

    _In = IF(MAX('Stock'[Part]) in FILTERS(Part[Part])||MAX('Transaction'[Part]) in FILTERS(Part[Part]),MAX('Transaction'[In])+0,BLANK())
    _Out = IF(MAX('Stock'[Part]) in FILTERS(Part[Part])||MAX('Transaction'[Part]) in FILTERS(Part[Part]),MAX('Transaction'[out])+0,BLANK())
    _Qte = IF(MAX('Stock'[Part]) in FILTERS(Part[Part])||MAX('Transaction'[Part]) in FILTERS(Part[Part]),MAX('Stock'[Qte])+0,BLANK())

     

    And you will see:

    For the related .pbix file,pls click here.

     

    Best Regards,
    Kelly
    Did I answer your question? Mark my post as a solution!