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!The Power BI Data Visualization World Championships is back! It's time to submit your entry. Live now!
Hello everyone!
I need help getting a distinct count of names within a column with several conditions applied.
Here is a sample of the data I'm working with:
| UtilityName | RateScheduleName | IsDefault | IsActive | CompanyId |
F Electric | Husker | False | 11 | |
| F Electric | General Service | True | True | |
| F Electric | General Service | True | True | |
| F Electric | Glacial Energy | False | True | 12 |
| F Electric | Irrigation | True | True | |
| F Electric | Irrigation | True | True | |
| F Electric | Large Commercial | True | True | |
| F Electric | Large Commercial | True | True | |
| F Electric | Large Commercial Load Control | True | True | |
| F Electric | Large Commercial Load Control | True | True | |
| F Electric | Residential & Small Business | True | True | |
| F Electric | Residential & Small Business | True | True |
I want to count the number of distinct names in the 'RateSchedule - Current'[RateScheduleName]
Here is the formula I tried to use:
Solved! Go to Solution.
@rweb95 , Try measure as
calculate(DISTINCTCOUNT('RateSchedule - Current'[RateScheduleName]), filter('RateSchedule - Current', 'RateSchedule - Current'[IsActive] && 'RateSchedule - Current'[IsDefault]
&& isblank('RateSchedule - Current'[CompanyId])))
Hi,
Does this work?
=calculate(DISTINCTCOUNT('RateSchedule - Current'[RateScheduleName]), RateSchedule - Current'[IsActive]=TRUE(),'RateSchedule - Current'[IsDefault]=TRUE(),'RateSchedule - Current'[CompanyId]=BLANK())
@rweb95 , Try measure as
calculate(DISTINCTCOUNT('RateSchedule - Current'[RateScheduleName]), filter('RateSchedule - Current', 'RateSchedule - Current'[IsActive] && 'RateSchedule - Current'[IsDefault]
&& isblank('RateSchedule - Current'[CompanyId])))
Wonderful! It did work. Thank you for your help!
The Power BI Data Visualization World Championships is back! It's time to submit your entry.
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 61 | |
| 43 | |
| 30 | |
| 26 | |
| 23 |
| User | Count |
|---|---|
| 135 | |
| 114 | |
| 58 | |
| 39 | |
| 35 |