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.
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
119 | |
78 | |
58 | |
52 | |
46 |
User | Count |
---|---|
170 | |
117 | |
63 | |
58 | |
51 |