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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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.

watkinnc
Super User
Super User

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


I’m usually answering from my phone, which means the results are visualized only in my mind. You’ll need to use my answer to know that it works—but it will work!!
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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors