Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
I wonder if it's possible to do in power bi. I need to make a bar chart which will show the difference between the selected sub-category and all other categories.
Solved! Go to Solution.
@xariet , FOr this better you create a slicer on an independent Sub Category Table
M1= CALCULATE(SUM(Orders[Sales]),Filter( Orders, Orders[Sub-Category] in values(Orders[Sub-Category])) )
Diff = SUM(Orders[Sales]) - [M1]
Need of an Independent Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE
@xariet , FOr this better you create a slicer on an independent Sub Category Table
M1= CALCULATE(SUM(Orders[Sales]),Filter( Orders, Orders[Sub-Category] in values(Orders[Sub-Category])) )
Diff = SUM(Orders[Sales]) - [M1]
Need of an Independent Table in Power BI - Exclude: https://youtu.be/lOEW-YUrAbE
thank you @amitchandak for your help. your video helped me to understand the solution. I have created a new Orders table and brought sub-category slicer from the new orders table. And then my difference was just the difference in Sales from the ols and new tables. I didn't have to use M1 measure.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
58 | |
55 | |
55 | |
37 | |
30 |
User | Count |
---|---|
78 | |
64 | |
45 | |
42 | |
40 |