Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello,
I have a data table that looks like the following table. I am trying to create a bar chart that show the % Spend by Date and Type of Produce while filtering the table for Location = Grocery Store and Day = Monday or Tuesday.
LocationDayProduceTypePrice
Grocery Store | Monday | Apple | Fruit | 5.00 |
Farmers Market | Tuesday | Cucumber | Vegetable | 2.00 |
Grocery Store | Wednesday | Orange | Fruit | 6.00 |
Farmers Market | Monday | Peas | Vegetable | 8.00 |
Farmers Market | Tuesday | Banana | Fruit | 1.00 |
Grocery Store | Monday | Pineapple | Fruit | 10.00 |
Grocery Store | Monday | Carrots | Vegetable | 2.00 |
Grocery Store | Tuesday | Cucumber | Vegetable | 0.75 |
I am trying to get something like this:
However, when I try to do it in DAX using the following expression:
I get the following result:
What am I doing wrong? I am able to apply multiple filters within the same expression, why does adding "AllSelected" break it? How can I calculate the % of the total while filtering the data?
Any help would be greatly appreciated!
Solved! Go to Solution.
Hi @newpbiuser01
Please use these measures
pbix is attached
Hi @newpbiuser01
Please use these measures
pbix is attached
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
63 | |
62 | |
52 | |
39 | |
24 |
User | Count |
---|---|
84 | |
57 | |
45 | |
42 | |
37 |