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

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

Reply
Anonymous
Not applicable

Relationship - missing rows when adding column from another table

I have 2 tables (Table A and Table B) with a date and Hour column in each plus a Date table.

 

When I drag date from Date table in Table viz with hour from Table A and Table B it shows hours for April from Table A. 

 

when I drag Status column from Table B in the viz - April disappear as there are no April data in Table B.

 

How do I get April to appear on the "With status" viz?

 

2018-12-04_1452.png

 

 

1 ACCEPTED SOLUTION
LivioLanzo
Solution Sage
Solution Sage

hI @Anonymous

 

try to add these two measures:

 

 
Total B Hours = SUM( TableB[Hours B])
 
Total A Hours = 
    IF( 
        NOT( ISINSCOPE( TableB[status] ) ),
        SUM( TableA[Hours A] )
    )
2018-12-04_15-39-56.jpg

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

View solution in original post

3 REPLIES 3
DAXRichArd
Resolver I
Resolver I

Instead of having two fact tables (table A and table B), could you have a single fact table (table A B)? I don't have a solution by way of a DAX language. My first approach would be to denormalize the fact tables into one table. Looking at the available columns, you don't look like you have so much granularity that a single table becomes imposible to understand.

@DAXRichArd

 

the two tables are at a different granularities.. Table A is at the Date granularity whereas Table B is at the Date and Status granularity

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

LivioLanzo
Solution Sage
Solution Sage

hI @Anonymous

 

try to add these two measures:

 

 
Total B Hours = SUM( TableB[Hours B])
 
Total A Hours = 
    IF( 
        NOT( ISINSCOPE( TableB[status] ) ),
        SUM( TableA[Hours A] )
    )
2018-12-04_15-39-56.jpg

 


 


Did I answer your question correctly? Mark my answer as a solution!


Proud to be a Datanaut!  

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

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.