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 nowJuly 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more
Hi Team,
Can you please help me to know that how to apply below formula in Power Bi for a table
Countif(K4:Q29,"<=6")
Solved! Go to Solution.
Hi @Ramendra ,
Add an index column in the query editor.
Select the index column and unpivoted other column.
Extract the number after "U".
Converts your selected range to a filter condition in DAX.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Ramendra , if it is one column you can do like
countX(filter(Table,Table[col] <=6),Table[Col])
else Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.
@amitchandak , no this is not for a single column.
This is a range of columns in a table.
Can you please suggest for this.
Hi @Ramendra ,
https://community.powerbi.com/t5/Community-Blog/CO-CU-Excel-to-DAX-Translation/ba-p/1080018#M2077
CALCULATE(COUNT('Table[ColumnName),FILTER('Table', Table[ColumnName] <= 6))
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
Hi @Ramendra ,
Add an index column in the query editor.
Select the index column and unpivoted other column.
Extract the number after "U".
Converts your selected range to a filter condition in DAX.
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you for your help.
It was a great idea to unpivot columns to convert multiple columns in to one and then to apply formula to a final column and I got the expected output as per my requirement.
Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.
Join Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.
| User | Count |
|---|---|
| 28 | |
| 27 | |
| 25 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 53 | |
| 46 | |
| 38 | |
| 30 | |
| 21 |