Forum Discussion
How can I create a calculator that pulls values from two table visuals?
- 4 months ago
Hi cs7238,
I was able to reproduce your scenario using sample data and achieved the expected similarity calculation.
I’ve attached the PBIX file for your reference
Thank you.
.
Hi cs7238,
I was able to reproduce your scenario using sample data and achieved the expected similarity calculation.
I’ve attached the PBIX file for your reference
Thank you.
.
- 123abc4 months ago
Community Champion
Well designed ... excellent 👌
- cs72384 months agoRegular Visitor
I am running into an issue where only some of the ingredients appear in the table when I use your solution. I copy-pasted all of the DAX measures/tables into my powerBI. The only way to make all ingredients show is to add "Product Spec Code" to the table visual. I set "Summarization" to "Don't summarize" for Percent Contribution and Product Spec Code so that it would display Percent Contribution and not "sum of" in the table visual, which brought back some of the ingredients but not all.
- v-saisrao-msft4 months ago
Community Support
Hi cs7238,
Consider using a measure-based approach rather than filtering the table. You can apply the updated DAX measures provided below and use them in your table visuals instead of the Percent Contribution column.
Value A = VAR SelectedSpec1 = SELECTEDVALUE('Spec Selector 1'[Spec Code #1]) RETURN CALCULATE( MAX(RecipeData[Percent Contribution]), RecipeData[Product Spec Code] = SelectedSpec1 ) Value B = VAR SelectedSpec2 = SELECTEDVALUE('Spec Selector 2'[Spec Code #2]) RETURN CALCULATE( MAX(RecipeData[Percent Contribution]), RecipeData[Product Spec Code] = SelectedSpec2 )Thank you.