Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have 2 tables:
1. DIM table: CostCenters
-Id
2. FACT Table: Revenue
-OriginalId
-NewId
-Amount
There is a relation between CostCenters.Id and Revenue.NewId and I can easyily calculate the "Sum of Amount" of CostCenter.NewId.
However, I need a measure that gives me the "Sum of Amount" for the CostCenter.OriginalId.
I tried many things but nothing works 😞
Any help would really be appreciated.
Thx Christian
Solved! Go to Solution.
Hi @_chris_ ,
If I understand your question correctly then you need follow below steps:-
1. Create a inactive relationship between CostCenters.Id and Revenue.OriginalId
2. Create a measur as below:-
measure_ =
CALCULATE (
SUM ( Revenue[Amount] ),
USERELATIONSHIP ( CostCenters[Id], Revenue[OriginalId] )
)
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Thank you very much, Samarth!
I had in mind that it is possible to solve problems like this with an inactive relationsship. However, I did not know how to do this exactly.
On the other hand (as I am coming from SQL) where you can just join tables together without the need to add something to the (not existing) model, I am wondering if there is a way to achieve this w/o the need to create a relationship beforehand?
Anyway, I will accept your solution!
BR Christian
Hi @_chris_ ,
If I understand your question correctly then you need follow below steps:-
1. Create a inactive relationship between CostCenters.Id and Revenue.OriginalId
2. Create a measur as below:-
measure_ =
CALCULATE (
SUM ( Revenue[Amount] ),
USERELATIONSHIP ( CostCenters[Id], Revenue[OriginalId] )
)
Best Regards,
Samarth
If this post helps, please consider accepting it as the solution to help the other members find it more quickly.
Appreciate your Kudos!!
Connect on Linkedin
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
18 | |
7 | |
7 | |
5 | |
5 |
User | Count |
---|---|
25 | |
10 | |
10 | |
9 | |
6 |