Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowData Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more
Hi Community,
There is a requirement in which I need to count the number of columns created in a table during some post-processing of a client's data file. These will have column titles like 'Custom Field 1', 'Custom Field 2', ...
The summation of these columns needs to be included within the dashboard as a KPI. If no columns titled "custom field" exist within the dataset, assume that the value is 0.
I tried a lot to search for wildcard in Power BI but that referred to search values in a particular column and not search column names in a particular table.
i'm not sure i understood please provide woth some sample data if this doesnt work :
CALCULATE(count(table[column]),allexcept(table,table[custom fields]))
if this works please consider acceptig it as solution and kudos
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
| User | Count |
|---|---|
| 6 | |
| 4 | |
| 3 | |
| 3 | |
| 3 |