Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
JānisB
Frequent Visitor

How to change Relationship within one Measure

I have dimension table dim_Account_Resource_CostItem (picture 1)

JnisB_0-1717992121479.png

 

 


I have fact table Budget (picture 2)

JnisB_1-1717992131874.png

 


The realtionship between these tables (picture 3)

JnisB_2-1717992139881.png

 


I have a Matrix report (picture 4)
Rows:
1.Resource
2.CostItem

JnisB_3-1717992149042.png

 


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:

JnisB_4-1717992184793.png

 

Link to pbix file 'Razosana_v3.0_MODEL - EXAMPLE.pbix' for download:

https://failiem.lv/u/u679acqvrr 

2 REPLIES 2
Rupak_bi
Super User
Super User

plz share sample data



Regards
Rupak
FOLLOW ME : https://www.linkedin.com/in/rupaksar/

The link to example pbix file in the main topic.

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

Check out the October 2025 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.