Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by watching the DP-600 session on-demand now through April 28th.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now
Hello
Hope someone can help me. I have two different tables connected by account number
Table Accounts shows all my clients name.
Table EQ_ Key Facts shows the number of facts we know about clients.
1. I need a measure to work out how many clients do not have any key facts, I cannot do this directly on the key facts table as this will only show clients who have key facts.
In this example, Dan + Puppu do not have key facts.
2. I need groups for how many key facts we have per client and the groups need to be as follow:
Could anyone please help me?
Many thanks!! 😀
Solved! Go to Solution.
Hi @Anonymous
I tested it with your sample.
Create a measure:
Measure =
VAR _count = CALCULATE(COUNT('EQ_ Key Facts'[Key Facts]), FILTER('EQ_ Key Facts', [Key Facts] = MAX(Accounts[Accounts])))
VAR _result = IF(_count <> BLANK(), _count, 0)
RETURN
SWITCH(TRUE(),
_result = 0, "0",
_result = 1 || _result = 2, "1-2")
Output:
Is this the result you expect? If this is not the result you are looking for, please provide the result you are looking for in excel form so we can help you better.
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Anonymous
I tested it with your sample.
Create a measure:
Measure =
VAR _count = CALCULATE(COUNT('EQ_ Key Facts'[Key Facts]), FILTER('EQ_ Key Facts', [Key Facts] = MAX(Accounts[Accounts])))
VAR _result = IF(_count <> BLANK(), _count, 0)
RETURN
SWITCH(TRUE(),
_result = 0, "0",
_result = 1 || _result = 2, "1-2")
Output:
Is this the result you expect? If this is not the result you are looking for, please provide the result you are looking for in excel form so we can help you better.
Best Regards,
Yulia Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous So like a calculated column in your Accounts table like: COUNTROWS(RELATED('Key Facts')) + 0 ?
@Greg_Deckler I mention the tables to show that I cannot know the blanks on the key facts
but I think something similat to this will work:
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 42 | |
| 37 | |
| 34 | |
| 21 | |
| 16 |
| User | Count |
|---|---|
| 65 | |
| 62 | |
| 31 | |
| 26 | |
| 25 |