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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
enzo88
Frequent Visitor

RANKX by multiple group

HI

 

i have this table:

Materialtot value €sub-categoryVendor
a100CM1x
a10CM2x
b20CM2g
b200CM3y
c30CM1r
c300CM3z

 

i would like to create a measure that dynamically calculate the ranking of each material by total value, but still considering the split by vendor and sub-category so that it would result like this:

Materialtot value €sub-categoryVendorRank Measure
a100CM1x1
a10CM2x2
b20CM2g2
b200CM3y1
c30CM1r2
c300CM3z1

 

I have tried this:

Rank Measure = 

RANKX(allselected('PO Schedule'[Material]),[tot value €],,DESC)
 
and i obtain
Materialtot value €sub-categoryVendorRank Measure
a100CM1x1
a10CM2x1
b20CM2g1
b200CM3y1
c30CM1r1
c300CM3z1

 

Thanks 

Enzo

1 ACCEPTED SOLUTION
ThxAlot
Super User
Super User

Value Rank.pbix

 

ThxAlot_0-1683373602598.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



View solution in original post

2 REPLIES 2
ThxAlot
Super User
Super User

Value Rank.pbix

 

ThxAlot_0-1683373602598.png



Expertise = List.Accumulate(


        {Days as from Today},


        {Skills and Knowledge},


        (Current, Everyday) => Current & Day.LeanAndPractise(Everyday)


)



Works like a charm! thanks

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.