Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredJoin us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register now.
Calculate(distinctcount('Call Center'[Call Id]),Filter('Call Center','Call Center'[Answered (Y/N)]="Y")) i have try so many time but showing error token literal expected please solve and ans me
Hi @Nehu23 ,
Calculate(distinctcount('Call Center'[Call Id]),Filter('Call Center','Call Center'[Answered (Y/N)]="Y"))
The formula provided is a DAX formula. And the dax appears in Power BI Desktop instead of Power Query Editor. In Power Query, we often use M language. Here's the article about the differences between them. Please refer to
M or DAX? That is the Question! - RADACAD
About counting in Power Query, refer to
List.Count in Power Query: 10 examples - BI Off The Grid
Best Regards,
Stephen Tao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Nehu23 ,
You have posted this in Power Query forum. Is that where you are writing this code?
If not you would be better off posting this in the DAX forum.
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!
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.