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.
I have a months column in my table (TableA) with values as below :
Month No Column1 Column2
---------- ---------- ----------
1
2
3
4
5
6
7
8
.
.
.
.
.
.
.
.
240
Now, I am trying to create two columns using DAX as below :
value at Duration1 = if(Month No < 70, TableA[column2],TableA[column1])
value at Duration2 = if(Month No < 140, TableA[column2],TableA[column1])
First one gets created fine, however I get a circular dependency error
while saving the second one.
I need to have 2 different columns.
Any help would be much appreciated.
hi @hdavidson - Have any either of the columns Duration 1 or Duration 2 been derived from Month No? If that is the case then there is chance that you may get a reference error. Can you share the sample pbix file for reference?
Please mark the post as a solution and provide a 👍 if my comment helped with solving your issue. Thanks!
Proud to be a Super User!
tried uploading the screenshot of the error & the 2 columns that I have created but no luck got an error there as well, so typed out the column DAXs.
hope this helps!
Value at Duration2 = if(FinalTable[Duration] < 145, FinalTable[Value], FinalTable[BOM Interest Curve])
This is whereI am getting the error as "A circular dependency was detected: FinalTable[Value at Duration1], FinalTable[Value at Duration2], FinalTable[Value at Duration1]
pasted below is the first column which is good :
Value at Duration1 = if(FinalTable[Duration] < 73, FinalTable[Value], FinalTable[BOM Interest Curve])
@hdavidson , They should work. Can you share sample pbix after removing sensitive data.
these seems fine
value at Duration1 = if([Month No] < 70, TableA[column2],TableA[column1])
value at Duration2 = if([Month No] < 140, TableA[column2],TableA[column1])
@amitchandak tried uploading the screenshot of the error & the 2 columns that I have created but no luck got an error there as well, so typed out the column DAXs.
hope this helps!
Value at Duration2 = if(FinalTable[Duration] < 145, FinalTable[Value], FinalTable[BOM Interest Curve])
This is whereI am getting the error as "A circular dependency was detected: FinalTable[Value at Duration1], FinalTable[Value at Duration2], FinalTable[Value at Duration1]
pasted below is the first column which is good :
Value at Duration1 = if(FinalTable[Duration] < 73, FinalTable[Value], FinalTable[BOM Interest Curve])
Hi @hdavidson ,
Still unable to clearly understand your scenario, try pasting the table data or share the sample pbix via cloud service like onedrive for business.
Please mask any sensitive data before uploading
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
117 | |
104 | |
77 | |
73 | |
50 |
User | Count |
---|---|
145 | |
109 | |
108 | |
90 | |
64 |