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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! 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" }
)
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 63 | |
| 55 | |
| 41 | |
| 17 | |
| 14 |
| User | Count |
|---|---|
| 97 | |
| 80 | |
| 35 | |
| 29 | |
| 25 |