Adding Pre Calculated Rank in Power BI Using Power Query

แชร์
ฝัง

ความคิดเห็น • 19

  • @Eric10Cartman
    @Eric10Cartman ปีที่แล้ว

    Thanks for the great explanation!!

  • @kuto1
    @kuto1 ปีที่แล้ว

    Super clear and useful, thanks!

    • @RADACAD
      @RADACAD  ปีที่แล้ว

      Great to hear!

  • @yani_tt
    @yani_tt ปีที่แล้ว

    This was very helpful, thank you!

  • @m.m.2209
    @m.m.2209 ปีที่แล้ว

    very helpful, thank you!

  • @ALBERTYY55
    @ALBERTYY55 ปีที่แล้ว

    Thanks. this helps. some people has a button called "rank column" in transform. but I do not have it. This video is good

  • @mayankbankoti
    @mayankbankoti 9 หลายเดือนก่อน

    thanks , can you help what if in ranking we need to do order by another column (other than partition by column) , can we do this ?

  • @MohammadAshooryan
    @MohammadAshooryan 2 ปีที่แล้ว

    thank you reza. this is very usefull.

    • @RADACAD
      @RADACAD  2 ปีที่แล้ว

      You're welcome

  • @aleksandarbbb1051
    @aleksandarbbb1051 2 ปีที่แล้ว +1

    Hi, thanks for great tips.
    For rankig based on two or more columns I used your tip :
    - sort data by those columns
    - Table.Buffer , to be sure sorting will finish before next step
    -Group table by column using ‘All Rows’ as operation , new column is added, CustomCol
    Table.AddIndexColumn([CustomCol], “Rank”1,1)
    Can all these steps be replaced with AddRankColumn ?
    Thanks

    • @RADACAD
      @RADACAD  2 ปีที่แล้ว

      Yes, that is right :)

    • @aleksandarbbb1051
      @aleksandarbbb1051 2 ปีที่แล้ว

      @@RADACAD Great. I have one issue with steps described i prevous post. Afer AddindexColumn I delete other columns and expand column created by this last step. Problem is column types are lost. All columns are AllTypes. Is there any eay to keep types as they were before groupping ?

  • @GeorgeKlucsarits
    @GeorgeKlucsarits 2 ปีที่แล้ว

    Thanks, Reza! Just to make sure I understood when to do the rank calculation in PQ and not in PBI, if I want to rank customers on lifetime sales then using PQ makes sense as that rank will not be affected by any subsequent PBI measures; lifetime is lifetime. However, if I need to calculate sales rank within different time periods, say rank of sales in the last year, then that would be done in a DAX measure or PBI table. Did I understand that correctly? Thanks again for another great explanation!

    • @RADACAD
      @RADACAD  2 ปีที่แล้ว

      Hi George
      Thanks
      Yes, you got it exactly right. those two scenarios are spot on.

  • @EyiBillion
    @EyiBillion 2 ปีที่แล้ว

    Brilliant!

    • @RADACAD
      @RADACAD  2 ปีที่แล้ว

      Glad to help!

  • @totvabe1
    @totvabe1 2 ปีที่แล้ว

    Is Table.AddRankColumn a new function? I don't have it in my May version of PBI.

  • @baselesspeach8190
    @baselesspeach8190 ปีที่แล้ว

    How would you rank the column if the Customer names are repeated multiple times?

    • @RADACAD
      @RADACAD  ปีที่แล้ว

      You can first GROUP BY the customer name, and then do the ranking