cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
SiroPW
Helper I
Helper I

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.

1 ACCEPTED SOLUTION
V-lianl-msft
Community Support
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]))

V-lianl-msft_0-1602145059889.png

 

 

Best Regards,
Liang
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

3 REPLIES 3
V-lianl-msft
Community Support
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]))

V-lianl-msft_0-1602145059889.png

 

 

Best Regards,
Liang
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

watkinnc
Solution Sage
Solution Sage

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

Ashish_Mathur
Super User III
Super User III

Hi,

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

Hope this helps.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Get Ready for Power BI Dev Camp

Power BI Dev Camp - June 24th

Mark your calendars and join us for our next Power BI Dev Camp!

Top Solution Authors
Top Kudoed Authors