Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hello
I would like to create a measure to calculate the costs for each employee in Table A, based on information in Table B, shown below
The two tables are linked by Z_Division_SK in both tables.
What I want to do is that, if an employ in team "Sales" in Table B, the cost of the employee at that time = "Travel Distance" * 1.69, otherwise = "Travel Distance" *1.35
I use the following
Costs =
IF(
RELATED('Table B' [Team])= "Sales",
SUMX('Table A',[Travel Distance]*1.69),
SUMX('Table A',[Travel Distance]*1.35))
Then I got error message saying Table B doesn't exist or doesn't have relationship with Table A
The data I use for the calculation is not directly linked but the two tables are linked.
Is my task achievable?
Your help is much apprecated. Thanks in advance.
Solved! Go to Solution.
I solved the issue. Rather than creating a measure, I create a new colunm. Then it works well.
Thank you for your attendation.
pls provide update the sample data. We need the columns that can be linked between two tables and what's the expected output? that will help us to check if the solution is correct.
Proud to be a Super User!
I solved the issue. Rather than creating a measure, I create a new colunm. Then it works well.
Thank you for your attendation.
you are welcome
Proud to be a Super User!
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
146 | |
85 | |
66 | |
52 | |
47 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |