Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Nehu23
New Member

solving a query

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

2 REPLIES 2
Anonymous
Not applicable

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.           

Nathaniel_C
Community Champion
Community Champion

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





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors