Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Solved! Go to Solution.
Hi @KristofferAJ ,
The most interesting think in your measure is the rank. I have never seen that done in Power Query. Here is what I found, and it is very cool.
https://data-witches.com/2020/10/21/adding-a-row-rank-based-on-a-different-column-with-power-query/
The picture below is daxformatter.com and I would highly recommend this to you.
I will send you my pbix. The second issue is counting the number of rows by fruit, which is simply using groupby in Power Query.
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!
Take a look at Convert DAX column into Power Query (add column)
Seems to be the same question.
Hi @KristofferAJ ,
Ranking in the power query is easy, here's the video for reference.
1.According to the tutorial in the video above, get the [Rank] column.
2.Add a custom column to count rows.
3.Expand the [Custom] column.
4.Add a custom column to get the results.
You can check more details from my attachment.
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.
If you would share your pbix, or dummy up some values in Excel both for current and expected data. Please copy and paste them into your post, rather than doing a picture, we may be able to help you.
Please read this post to get your question answered more quickly:
https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
Nathaniel
Proud to be a Super User!
Hi @Nathaniel_C
Thanks for your interest. I have made a dummy pBIX with the formula as I have it now, my wish is to have the "COLUMN NAME" directly in powerquery preferebly by 'add column'
I have placed the file here, as I can't see an ooption to upload here..
https://www.dropbox.com/s/trrdggjz4c1x3ff/Test_scoringrank_in_powerquery.pbix?dl=0
Thanks
Kristoffer
Hi @KristofferAJ ,
The most interesting think in your measure is the rank. I have never seen that done in Power Query. Here is what I found, and it is very cool.
https://data-witches.com/2020/10/21/adding-a-row-rank-based-on-a-different-column-with-power-query/
The picture below is daxformatter.com and I would highly recommend this to you.
I will send you my pbix. The second issue is counting the number of rows by fruit, which is simply using groupby in Power Query.
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!
PBIX https://1drv.ms/u/s!AgCd7AyfqZtE4ShMLbd1zhJPNDvX?e=kjNvFh
Proud to be a Super User!