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.
I have dimension table dim_Account_Resource_CostItem (picture 1)
I have fact table Budget (picture 2)
The realtionship between these tables (picture 3)
I have a Matrix report (picture 4)
Rows:
1.Resource
2.CostItem
The report uses measure Budget CP:
Budget CP =
SWITCH(TRUE(),
ISINSCOPE(dim_Account_Resource_CostItem[Account_ID]), BLANK(),
SUM('Budget'[Value])
)
The problem is that for Resources "Laboratory", "Tractors" and "Water" it shows one value 600 summarized by CostItem not separated by Resources.
It's understandable why.
The question is - how to change the measure Budget CP or how to make additional changes to get the result -
If Resource in ("CostOfMaterial", "CostOfServices") then use relationship by ItemCost, but if Resource in ("Laboratory", "Tractors", "Water") then use use relationship by Resource between dim_Account_Resource_CostItem table and Budget table?
The result should be:
Link to pbix file 'Razosana_v3.0_MODEL - EXAMPLE.pbix' for download:
plz share sample data
The link to example pbix file in the main topic.
User | Count |
---|---|
15 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
25 | |
13 | |
13 | |
8 | |
8 |