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.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
95 | |
77 | |
65 | |
53 |
User | Count |
---|---|
144 | |
105 | |
102 | |
89 | |
63 |