The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Team,
Inshort, I want to take sum of salary (from Fact table) vs State(from Code table).
Manager Hierarchy R_ID to Fact Table R_ID inactive relationship.
Hi,
Thanks for the solution Gabry provided, and i want to offer some more infotmation for user to refer to.
hello @NILU090 , you can try the following meaure.
MEASURE =
CALCULATE (
SUM ( Fact_Table[Salary] ),
USERELATIONSHIP ( Fact_Table[R_ID], ManagerHierachy[R_ID] ),
CROSSFILTER ( Groups[CODE], ManagerHierachy[CODE], BOTH )
)
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
code and manager hierarchy doesnt have any direct , indirect relationship
Yeah I see, but the key "CODE" is the same, so you can build a relationship between these tables. So if you set a relationship, will it be 1:1 or what type?
we cant modified the relationship. This is what we have. on basis of that need to write dax.
Ok. In my opinion you can't do that just with DAX without make any modification to the model but wait for the help of experts 😉
Hello @NILU090 ,
not sure but try this
Measure = calculate(sum(''Fact table'[Salary]), userelationship('Fact table'[R_ID], 'Manager hierarchy'[R_ID]))
let me know
Its not working.
Manager hierarchy filters to groups ( Manager hierarchy 1 side : groups many side)
Oh sorry you're right. So wich is the relationship between code and manager hierarchy?