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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
gramespa
Frequent Visitor

2 rankings in same tbale

Hi all,

 

i have a table containing suppliers and net value per supplier for Materials and for services. Too create two ABC analysis, one showing A suppliers for materials, one showing A suppliers for services, i would like to rank my suppliers a) per value materials b) per value services.

 

While this code worked perfectly fine for a it is giving me circular error when being used for b with slight adjustments 

 Ranking Value NU =
RANKX(Kreditoren; Kreditoren[Nettobestellwert NU je Kreditor];Kreditoren[Nettobestellwert NU je Kreditor];DESC;Skip)
 
 
Ranking Umsatz MAT =
RANKX(Kreditoren;Kreditoren[Nettowert Mat je Kreditor];Kreditoren[Nettowert MAt je Kreditor];DESC;Skip)
As a result i need two colums with rankings per supplier but based on different value.
 
Is it simply impossible to have 2 calculated colums containing rankings within one table or is there another issue?
 
Greatful about any help!
 
1 ACCEPTED SOLUTION
v-shex-msft
Community Support
Community Support

HI @gramespa ,

It seems like rankx function calculate on same contents and caused the issue, you can take a look at following links to know how to prevent circular dependency error.

Avoiding circular dependency errors in DAX

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

1 REPLY 1
v-shex-msft
Community Support
Community Support

HI @gramespa ,

It seems like rankx function calculate on same contents and caused the issue, you can take a look at following links to know how to prevent circular dependency error.

Avoiding circular dependency errors in DAX

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors