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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Anonymous
Not applicable

Circular dependency

Hello community, I am having a problem when I want to apply the following DAX that refers to Circular dependency:

 

cantidad_plataforma_todas = if(MoviesAllServicesStreaming[cantidad_plataforma] = 1, "Una plataforma", if (MoviesAllServicesStreaming[cantidad_plataforma] = 2, "Dos plataformas", if(MoviesAllServicesStreaming[cantidad_plataforma] = 3, "tres plataformas", if(MoviesAllServicesStreaming[cantidad_plataforma] = 4, "Cuatro plataformas"))))
 

My question is Do you have any suggestion to solve it? I have no problem to share the file since it is an educational project.

 

https://drive.google.com/drive/folders/1CRNkm2UyaBuwJQTSBg7oT0wMQFe9zt10?usp=sharing

 

Thank you.

1 REPLY 1
JW_van_Holst
Resolver IV
Resolver IV

Your circular dependency is a caused by a  combination of:

  1. The use of calculate in the calculated colomn [cantidad_plataforma]
  2. Lack of a column with unique identifiers (ID has a few blanks)

The simplest solution is not using calculate in [cantidad_plataforma]. The calculation can be done using row context (just adding the columns).

(there is an error in  [cantidad_plataforma]: ‘Hulu’ is counted twice, but that has nothing to do with your circular dependency)

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.