Forum Discussion

SiroPW's avatar
SiroPW
Helper I
5 years ago
Solved

Show rows with zero value in table (two underlying data tables)

Hi,

 

I have two tables:

 

Table ORG

idnameorg
123ax
456by
789cz

 

Table HOLDINGS

idunitsvalue
12350500
78920200

 

I would like to output a table (or matrix):

idnameorgunitsvalue
123ax50500
456by00
789cz20200

 

The trick of course is to get the id 456 from the ORG table to show even with no values in the holdings table.

 

I've tried a calculated column of SUM(value) + 0 but it is still not showing.

 

I hope that is clear, any help is appreciated.

  • Hi SiroPW ,

     

    Create two measures:

    Measure = IF(ISBLANK(MAX('Table (2)'[units])),0,MAX('Table (2)'[units]))
    Measure 2 = IF(ISBLANK(MAX('Table (2)'[value])),0,MAX('Table (2)'[value]))

     

     

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

3 Replies

  • Hi,

    Using the Query Editor, merge the Holdings Table into the Org Table.

    Hope this helps.

  • Anonymous's avatar
    Anonymous
    Not applicable

    Try CALCULATE(SUM[Value]), ALL(Table[ID]), Values(Table[ID]))

  • V-lianl-msft's avatar
    V-lianl-msft
    Community Support

    Hi SiroPW ,

     

    Create two measures:

    Measure = IF(ISBLANK(MAX('Table (2)'[units])),0,MAX('Table (2)'[units]))
    Measure 2 = IF(ISBLANK(MAX('Table (2)'[value])),0,MAX('Table (2)'[value]))

     

     

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