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.
Team -
I have a table of weekly data (ProductData) and I would like to display weighted profit for Product A by it's gap to Product B (sample data below):
Customer | Product | Price Per Unit | Profit | Dollar Sales | Week |
Customer A | Product A | 1.99 | 1.00 | 50,000 | Week 1 |
Customer A | Product B | 1.89 | 1.50 | 60,000 | Week 1 |
Customer B | Product A | 1.79 | 1.10 | 1,000,000 | Week 2 |
Customer B | Product B | 1.66 | 1.60 | 2,500,000 | Week 2 |
I am comparing the price of the two products based on user parameter selections - the parameter table calculation is as follows:
Parameters =
After the user selects two different products - I have the below measure that calculates the price gap between the two products:
Prod1-Prod2 Gap =
Hi,
If you've fixed the issue on your own please kindly share your solution. if the above posts help, please kindly mark it as a solution to help others find it more quickly.thanks!
Power BI does support the concept of binning. It is found under the context menu of a column and you choose Group. Then you can select the grouping type as Bin.
However, in your case, you might want to create a new table to serve as your axis using something like:
Thank you, @Greg_Deckler -
RE: "Then you could use that as your axis and write your measure such that it grabs the MAX Value out of that table and then filters your data such that you are only returning things that fall into that each bin."
What would be the syntax to reference the Prod1-Prod2 Gap measure results to the values in the disconnected series table? Would I need to have a MIN/MAX for each line in the generated series? Not sure I understand how to return values specific to each bin.
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 |
---|---|
111 | |
95 | |
80 | |
68 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |