Forum Discussion
hi
I have
total as per above pic should be
- Anonymous3 years ago
Hi abc_777 ,
Please update the formula of measure [Purchased Both Products Quantity1] as below and check if it can return the expected result...
Purchased Both Products Quantity1 = VAR PurchasedBoth = [Purchased Both Products Quantity] VAR ComparisonProduct = [Quantity Comparison Product] RETURN SUMX ( VALUES ( 'bm_retail_t product_file'[ITEM_NAME] ), SUMX ( VALUES ( 'Comparison product'[ITEM_NAME] ), PurchasedBoth + ComparisonProduct ) )If the above one can't help you, please provide some raw data in your table 'bm_retail_t product_file' and
'Comparison product' with Text format and your expected result with backend logic and special examples. By the way, is there any relationship between these two tables? If yes, please provide the related info. It would be helpful to find out the solution. You can refer the following links to share the required info:How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
2 Replies
- AnonymousNot applicable
Hi abc_777 ,
Please update the formula of measure [Purchased Both Products Quantity1] as below and check if it can return the expected result...
Purchased Both Products Quantity1 = VAR PurchasedBoth = [Purchased Both Products Quantity] VAR ComparisonProduct = [Quantity Comparison Product] RETURN SUMX ( VALUES ( 'bm_retail_t product_file'[ITEM_NAME] ), SUMX ( VALUES ( 'Comparison product'[ITEM_NAME] ), PurchasedBoth + ComparisonProduct ) )If the above one can't help you, please provide some raw data in your table 'bm_retail_t product_file' and
'Comparison product' with Text format and your expected result with backend logic and special examples. By the way, is there any relationship between these two tables? If yes, please provide the related info. It would be helpful to find out the solution. You can refer the following links to share the required info:How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
- abc_777Solution Specialist
thx man, it works