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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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.

Anonymous
Not applicable

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

Ashish_Mathur
Super User
Super User

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.