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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
PanosIWA
Frequent Visitor

Count Blank values across related tables

Please see attachment for table detail

 

I have three tables that are related.  I need to identify how many accounts (table Account) don't have a coresponding email address (table Interested Party).   Th attached image shows (in orange) how the tables are related, and in red what I am trying to calculate.

 

Also, I will be getting updated versions of these table periodically, if possible I want to setup in such a way where I can upload new versions of the 3 tables and all my calculations will be in place.  I need to be able to show progress as users are updating the system.  60% of the emails have been populated.  etc. 

 

Please help.  2-24-2020 11-19-17 PM.jpg

1 ACCEPTED SOLUTION
Mariusz
Community Champion
Community Champion

Hi @PanosIWA 

 

I've attached a file where I have applied the measure from my earlier post.

In my example, it returns 2 names out of 4 that have no email attached.  

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

View solution in original post

3 REPLIES 3
Mariusz
Community Champion
Community Champion

Hi @PanosIWA 

 

Try something like this.

Count = 
CALCULATE(
    COUNTROWS( ac ), -- ac = your accounts table
    EXCEPT(
        VALUES( ac[AcId] ),
        CALCULATETABLE( 
            VALUES( 'Join'[AcId] ), -- Join = your midle (fact) table  
            NOT ISBLANK( email[email] ) --email= table where you store the emails
        )
    )
) 

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

Thanks for your help and response.  I put the below forumula into a new measure under the 'Account' table.  It seem to have took but when I drop the new measure into  a grid it returns 2 or 226.  I am trying to flag the 'Account_Number's with a y/n on if they have an email not.   Thanks again for your help and let me know if you need me to provide you with anything else to help.  I am fairly new and PBI. 

 

Count Email =
CALCULATE(
    COUNTROWS('402 EXTRACT - ACCOUNT'),
    EXCEPT(
        VALUES('402 EXTRACT - ACCOUNT'[ACCOUNT_NUMBER] ),
        CALCULATETABLE(
              VALUES('402 EXTRACT - ACCOUNT SUBMASTER XREF'[ACCOUNT_NUMBER]),
              NOT ISBLANK('402 EXTRACT - INTERESTED PARTY'[BI43_E_MAIL_ADDRESS])
            )
        )
    )
Mariusz
Community Champion
Community Champion

Hi @PanosIWA 

 

I've attached a file where I have applied the measure from my earlier post.

In my example, it returns 2 names out of 4 that have no email attached.  

 

Best Regards,
Mariusz

If this post helps, then please consider Accepting it as the solution.

Please feel free to connect with me.
LinkedIn

 

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!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 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.

Top Solution Authors
Top Kudoed Authors