Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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?
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
15 | |
11 | |
11 | |
10 | |
10 |
User | Count |
---|---|
19 | |
14 | |
13 | |
11 | |
8 |