Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
My data a model that includes three tables which are all linked as follows:
Projects -> Tasks -> Assignments
Multiply Tasks per project, multiple assignments per task.
I need to arrive at a value which is the result of multiplying a filed from each table – Projects.Column1 * Tasks.Column1 * Assignments.Column1
I’ve managed to do it by creating new columns using LOOKUPVALUE so all the values are in the same table – I can then create a further column to multiply them out.
However I’m sure there must be a single step way of multiplying these value across the 3 tables??
Solved! Go to Solution.
Hi @AndyTrezise
I'm not absolutely sure. But you could try to use
=SUMX(PROJECTS;'Projects'[Number]*RELATED('Tasks'[Number]*RELATED('Assignments'[Number]))
Note: This is only vailid when ONE Project has ONE Task and ONE Assignement. In fact 1:1 relationship.
Greetings spuder
Hi @spuder
It should be possible to multiply across three tables without using the LOOKUPVALUE column.
If you create a calculated column in your Assignments table you can use a calculation like this
Column = RELATED('Projects'[Val]) * RELATED('Tasks'[Val]) * Assignments[Val]
This can also be done using a measure, or as a column in one of the higher tables, but you'd need to use RELATEDTABLE and SUM to complete.
When using a measure, you may also take advantage of CROSSFILTER Function to set cross-filter direction to both.
Hi @spuder
It should be possible to multiply across three tables without using the LOOKUPVALUE column.
If you create a calculated column in your Assignments table you can use a calculation like this
Column = RELATED('Projects'[Val]) * RELATED('Tasks'[Val]) * Assignments[Val]
This can also be done using a measure, or as a column in one of the higher tables, but you'd need to use RELATEDTABLE and SUM to complete.
Hi @AndyTrezise
I'm not absolutely sure. But you could try to use
=SUMX(PROJECTS;'Projects'[Number]*RELATED('Tasks'[Number]*RELATED('Assignments'[Number]))
Note: This is only vailid when ONE Project has ONE Task and ONE Assignement. In fact 1:1 relationship.
Greetings spuder
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
76 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |