Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I keep finding posts that don't quite answer this...
I have 2 tables that are conntected by the AppKey column, that is unique to Table 1.
I would like to create a measure that tells me how many times the AppKey in Table 1, appears in Table 2, but only when the Status Code column in Table 2 is not blank.
Example:
Thanks in advance.
Solved! Go to Solution.
This solution assumes that your blank columns are actually NULL and not "" (empty string):
# Instances = CALCULATE( COUNTROWS(Table2) ,Table2[Status Code] <> BLANK() )
Table2[Status Code] is actually a blank string, convert it to NULL using Power Query.
If you can't do that, you can use this measure:
# Instances = CALCULATE( COUNTROWS(Table2) ,Table2[Status Code] <> "" )
I think you'll get better performance out of your model if it's NULL.
This solution assumes that your blank columns are actually NULL and not "" (empty string):
# Instances = CALCULATE( COUNTROWS(Table2) ,Table2[Status Code] <> BLANK() )
Table2[Status Code] is actually a blank string, convert it to NULL using Power Query.
If you can't do that, you can use this measure:
# Instances = CALCULATE( COUNTROWS(Table2) ,Table2[Status Code] <> "" )
I think you'll get better performance out of your model if it's NULL.
Thanks, that works. I think you meant to say "Table 1" after COUNTROWS, I used Table 1 and it worked.
I may have had the columns backward in my previous attempts to use this.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 97 | |
| 71 | |
| 50 | |
| 46 | |
| 44 |