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
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 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.