Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
Can anyone help with circular dependency error
I have this i 1st measure in 1st table which calculates sum of worked hours for each month for each person in the 1st table 'labor'
@WTAS80486 , Using a measure in a calculated column or calculated table is not a good idea, as those can not take slicer values and are just static calculations.
Better to have measure on top of those measures
like
Sum of worked Hours = Sumx(labor, IF(LOOKUPVALUE(user[User Status Date], user[Login ID],labort[Person ID]) <= labor[Month End date],[Sum of worked Hours by month],0) )
Sumx(labor, IF(LOOKUPVALUE(user[User Status Date], user[Login ID],labor[Person ID]) <= [Month End date],[Total Hours(Measure)],0) )
Also Refer: https://www.sqlbi.com/articles/avoiding-circular-dependency-errors-in-dax/
@amitchandak These measures on top of measures are not displaying the correct calculation for worked hours and total hours in the calculated table
User | Count |
---|---|
22 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
27 | |
13 | |
11 | |
9 | |
6 |