Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello everyone,
I have this kind of table :
Code - Value
N1 - 1
N1 - 4
N1 - 7
N2 - 3
N2 - 5
N2 - 5
N3 - 7
N3 - 9
I want to filter data to have the minimum VALUE for each CODE like this :
N1 - 1
N2 - 3
N3 - 7
How to do it in a query in Power Query ?
Thank you.
Solved! Go to Solution.
Hi @Anonymous
You can use Group By as per below.
Hi @Anonymous ,
You need to go to the Transform part then Group by, select the Code as the Group by column and in the operation select Minimum of the column value:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
You need to go to the Transform part then Group by, select the Code as the Group by column and in the operation select Minimum of the column value:
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @Anonymous ,
Do you want to keep all the other column and on the Value repeat the minimum value?
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi @MFelix, yes, how can this be done? I want to keep same number of records and repeat the minimum value for each group
Can you please share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.
If the information is sensitive please share it trough private message.
Regards
Miguel Félix
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsYes absolutely. In the sample example given above, i would like to see the following output.
Input:
N1 - 1
N1 - 4
N1 - 7
N2 - 3
N2 - 5
N2 - 5
N3 - 7
N3 - 9
Output:
N1 - 1 - 1
N1 - 4 - 1
N1 - 7 - 1
N2 - 3 - 3
N2 - 5 - 3
N2 - 5 - 3
N3 - 7 - 7
N3 - 9 - 7
Hi @Anonymous
Please see the attached file with a solution.
This will involve some M scripting, so let me know if you need help.
Hi @Anonymous
You can use Group By as per below.
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
62 | |
52 | |
39 | |
24 |
User | Count |
---|---|
84 | |
57 | |
45 | |
42 | |
37 |