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

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

Reply
Anonymous
Not applicable

how to get mode for a given Column using M query in power BI

Abhiraj_45_0-1687801562161.png

Does any One know How can i get a summarized table based on the above table. I need to find Mode for the above table. If you see Max_Num is a colum that shows Maximum count Based on which i need to find mode for Most Area workded by each Employee on a given date. I need to do this in M query. Not Sure how "List.Modes" can be usefull i tried but it didnt worked

3 REPLIES 3
Anonymous
Not applicable

The Table shown is itself one complete table, and the reason why i need to use Power Query is i need to perform future Mergies with another data sets. And not sure how data modelling will be useful as far as i udnerstand it will be best if i have 2 tables and if ineed to alter the relationships.

@Anonymous 

Mode is a scalar value not a cell value! so in power query you never get scalar value!

Need to understand thru the sample data , as you said youhave another table which is not shown in the snapshot added.




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


VijayP
Super User
Super User

@Anonymous 

Power Query is a data preparation tool! What you are asking is the aggregations and other calculation which are part of Data Modelling! So, it is always the best practice to attemp such calculations in Data Modelling and not in Data Preparation!

By the why you have to do that particular Calculation in Power Query?!




Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
MY Blog || My YouTube Channel || Connect with me on Linkedin || My Latest Data Story - Ageing Analysis

Proud to be a Super User!


Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.