Forum Discussion
Help with Building Comparison Carts in Power BI
- 2 years ago
Ensure you have a Products table with at least ProductID and UnitPrice
- Go to the Modeling tab and create What-If parameters for each cart (e.g., Quantity_Cart1, Quantity_Cart2, Quantity_Cart3).
- Set the data type to Whole Number and define a reasonable range for the quantity.
Create measures:
Total_Cart1_Price =
SUMX(
Products,
Products[UnitPrice] * [Quantity_Cart1 Value]
)Similarly for Cart 2 and 3.
- Use slicers to allow users to select products.
- Add cards or tables to display the total prices of each cart.
Hi, DineshbabuR
May I ask if you have gotten this issue resolved? If it is solved, please share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.
If it is not resolved, I hope you will provide the full .pbix file via OneDrive or SharePoint. Please be careful to remove all sensitive information and we will do our best to provide ideas for your issue.
I hope my suggestions give you good ideas, if you have any more questions, please clarify in a follow-up reply.
Best Regards,
Fen Ling,
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.