Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
I have a table that looks like this:
| Location | Day | Product_Name | Quantity |
| East | 1 | Apples | 10 |
| East | 1 | Oranges | 8 |
| West | 1 | Apples | 15 |
| West | 1 | Oranges | 5 |
| North | 1 | Apples | 12 |
| East | 2 | Apples | 8 |
| East | 2 | Oranges | 12 |
| West | 2 | Apples | 7 |
| West | 2 | Oranges | 8 |
| North | 1 | Apples | 10 |
I would like to get the difference in quantities for each Day and Product_Name between two Locations that are selected in slicers i.e:
Slicer 1 (Location): East
Slicer 2 (Location): West
The output desired would have the values of Slicer 1 minus Slicer 2 (East minus West) like the table below but in the form of a stacked bar chart with Day on the x-axis, Difference in the y-axis and Product_Name as the stacked categories.
| Day | Product_Name | Difference |
| 1 | Apples | -5 |
| 1 | Oranges | 3 |
| 2 | Apples | 1 |
| 2 | Oranges | 4 |
Solved! Go to Solution.
@needtoknow , My video on similar topic can help
Power BI- Compare Categorical Data Using Slicers, Compare Two Brands/Categories/Cities: https://youtu.be/exN4nTewgbc
@needtoknow , My video on similar topic can help
Power BI- Compare Categorical Data Using Slicers, Compare Two Brands/Categories/Cities: https://youtu.be/exN4nTewgbc
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 74 | |
| 70 | |
| 39 | |
| 35 | |
| 23 |