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!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Dear All,
I want to create a card that shows the;
Sales Table
| Employee Name | Client | Sales |
| Ray | C1 | 100 |
| Ray | C2 | 150 |
| Ray | C3 | 125 |
| Bob | C1 | 120 |
| Bob | C2 | 100 |
| Bob | C4 | 100 |
| Cat | C5 | 150 |
| Cat | C2 | 160 |
| Cat | C4 | 175 |
Client Table
| Client | Category |
| C1 | Main |
| C2 | Main |
| C3 | Main |
| C4 | Secondary |
| C5 | Secondary |
| C6 | Secondary |
Am currently trying this out ;
Hi,
Your formula was quite close. This counts the number of employees with whose average sales are less than 100 (customerCategory = "Main"):
Proud to be a Super User!
Thank you very much for your help!
I seem to have this as an error
"The column 'ClientCategory[Category]' either doesn't exist or doesn't have a relationship to any table available in the current context."
Anything that I should be looking out for?
Hi,
Check the table name, I used a slightly different one than the one in your example. (Client Table -> ClientCategory). Additionally, I had a relationship between the Sales and client table.
Proud to be a Super User!
Thank you ValtteriN,
Am using the right table. Do many-many relationship has any impact to this?
Thanks!
Yeah, M:N will break RELATED. Here is a formula that works with that relation:
Proud to be a Super User!
Thank you! This seems to work!
That said, it seems to work well for non-decimal numbers and doesn't seems to be workable for number with decimal. Is there a way to enable average of numbers with decimal?
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 |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 19 | |
| 12 | |
| 10 |