Microsoft Fabric Community Conference 2025, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount.
Register nowThe Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.
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.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
User | Count |
---|---|
22 | |
17 | |
17 | |
11 | |
7 |
User | Count |
---|---|
27 | |
26 | |
13 | |
12 | |
12 |