Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I am analyzing a dataset where I need to find the rows under a specific column for a particular value.
Like here, in the screenshot given below I want to find number of rows for country = "United States of America" in the entire table.
Please let me know about how to use COUNTROWS function here to get the solution.
Solved! Go to Solution.
Hi @amansin19 ,
Please try this
US # =
CALCULATE (
COUNTROWS ( datatable ),
FILTER ( datatable, datatable[country] = "United States of America" )
)
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
Hi @amansin19 ,
You are very welcome!
Nathaniel
Proud to be a Super User!
Hi @amansin19 ,
Please try this
US # =
CALCULATE (
COUNTROWS ( datatable ),
FILTER ( datatable, datatable[country] = "United States of America" )
)
Let me know if you have any questions.
If this solves your issues, please mark it as the solution, so that others can find it easily. Kudos 👍are nice too.
Nathaniel
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
18 | |
15 | |
12 | |
11 | |
8 |
User | Count |
---|---|
24 | |
17 | |
11 | |
11 | |
10 |