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.
Hi All,
I want to create 2 Calculated columns : -
Column 1 :
The problem is that RELATEDTABLE is rewritten internally to CALCULATETABLE and it uses all columns from the expanded dimension table as filters. When you try to add new calculated columns they are added to the table and it will try to use them as filters as well, hence the circular dependency.
You need to remove the filters on all columns in the table except the key column used in the relationship between your dimension table and fact table, e.g.
Call Log Duration =
VAR _A =
MINX (
CALCULATETABLE (
'Call Logs Ameyo',
ALLEXCEPT ( 'Calling List Dimension', 'Calling List Dimension'[Key column] )
),
'Call Logs Ameyo'[CH_DATE_ADDED]
)
VAR _C =
DATEDIFF ( 'Calling List Dimension'[CREATEDATE], _A, HOUR )
RETURN
_C
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 |
---|---|
43 | |
20 | |
20 | |
16 | |
15 |
User | Count |
---|---|
46 | |
28 | |
25 | |
18 | |
17 |