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.
Hello there,
I'd like to count how many times a value is shown in the Partner column as long as it doesn't appear in the Customer column. I've tried using something akin to that, but has not worked:
CALCULATE(COUNTROWS('Base name'), 'Base name'[Partner] <> 'Base name'[Customer])
Perhaps the reason on why this measure has not worked is the relationship between tables, however even using USERELATIONSHIP('Dimension table'[Name of the client], 'Fact table'[Partner]) I got nothing. In the example of the image, the table is a Fact type table, and its active relationship is between the Customer and another column from a dimension table.
Any thoughts on where I'm doing wrong?
P.S.: In this table, my customer can be a partner as well.
Solved! Go to Solution.
@Anonymous , You should use a partner from the dimension. this should work
CALCULATE(COUNTROWS('Base name'),filter( 'Base name', 'Base name'[Partner] <> 'Base name'[Customer]) )
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Hey @Anonymous ,
In your Dimension 'Dimension table'[Name of the client] write :
Best regards,
Thanks, my friend
@Anonymous , You should use a partner from the dimension. this should work
CALCULATE(COUNTROWS('Base name'),filter( 'Base name', 'Base name'[Partner] <> 'Base name'[Customer]) )
If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
Thank you. It indeed worked 🤙
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 | |
99 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
102 | |
87 | |
64 |