Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hello,
I am trying to use the countrows function to get the unique count of records in a function. How can I use the I tried using the following function:
#Records = Countrows( Filter( Summarize ('Order Data', 'Order Data'[Order Number], 'Order Data'[Status])), [Status] = "Delivered"))
But I keep getting an incorrect syntax error saying - "The syntax for ) is incorrect". What am I doing wrong?
How can I use countrows, filter and summarize functions together?
I'd appreciate any help!
Solved! Go to Solution.
No need for summarize - better stay away from that function, it has lots of dirty secrets
Hi,
Try this
#Records = Countrows( Filter( Summarize ('Order Data', 'Order Data'[Order Number], 'Order Data'[Status]), [Status] = "Delivered"))
Thank you very much Ashish_Mathur and lbendlin for your prompt reply.
I checked your code carefully and the problem is that there is an extra ")" in the screenshot position. You can try to modify it.
The correct code should be as provided by Ashish_Mathur.
Or you can try the method provided by lbendlin which will also give you the results you want.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thank you very much Ashish_Mathur and lbendlin for your prompt reply.
I checked your code carefully and the problem is that there is an extra ")" in the screenshot position. You can try to modify it.
The correct code should be as provided by Ashish_Mathur.
Or you can try the method provided by lbendlin which will also give you the results you want.
Regards,
Nono Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi,
Try this
#Records = Countrows( Filter( Summarize ('Order Data', 'Order Data'[Order Number], 'Order Data'[Status]), [Status] = "Delivered"))
No need for summarize - better stay away from that function, it has lots of dirty secrets
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
65 | |
63 | |
52 | |
37 | |
36 |
User | Count |
---|---|
82 | |
67 | |
61 | |
46 | |
45 |