Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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?
User | Count |
---|---|
25 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |