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
Hi all,
How do I create a measure which counts 'CompanyHQOriginalSourceRef' IF Type = "Business Development" or "Top 10"?
Solved! Go to Solution.
Hi @HenryJS
Try This
Measure =
CALCULATE(
DISTINCTCOUNT( 'Table'[CompanyHQOriginalSourceRef] ),-- or COUNTROWS( 'Table' ),
'Table'[Type] IN { "Business Development", "Top 10" }
)
Hi @HenryJS,
I haven't found any ranking fields in your table, can you please explain more about your data structure?
How to Get Your Question Answered Quickly
In addition, You can try to use the following measure formula if it suitable for your requirement:
Measure =
CALCULATE (
COUNTA ( Table[CompanyHQOriginalSourceRef] ),
FILTER (
ALLSELECTED ( Table ),
[Type] = "Business Development"
&& [Rank] <= 10
)
)
Regards,
Xiaoxin Sheng
Hi,
Try this measure
=CALCULATE(COUNTROWS(Data),Data[Type]="Business Development"||Data[Type]="Top 10")
Hope this helps.
Hi,
Try this measure
=CALCULATE(COUNTROWS(Data),Data[Type]="Business Development"||Data[Type]="Top 10")
Hope this helps.
Hi @HenryJS,
I haven't found any ranking fields in your table, can you please explain more about your data structure?
How to Get Your Question Answered Quickly
In addition, You can try to use the following measure formula if it suitable for your requirement:
Measure =
CALCULATE (
COUNTA ( Table[CompanyHQOriginalSourceRef] ),
FILTER (
ALLSELECTED ( Table ),
[Type] = "Business Development"
&& [Rank] <= 10
)
)
Regards,
Xiaoxin Sheng
Hi @HenryJS
Try This
Measure =
CALCULATE(
DISTINCTCOUNT( 'Table'[CompanyHQOriginalSourceRef] ),-- or COUNTROWS( 'Table' ),
'Table'[Type] IN { "Business Development", "Top 10" }
)
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 |
|---|---|
| 45 | |
| 38 | |
| 34 | |
| 21 | |
| 17 |
| User | Count |
|---|---|
| 66 | |
| 65 | |
| 31 | |
| 26 | |
| 26 |