Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
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
User | Count |
---|---|
85 | |
79 | |
64 | |
52 | |
46 |
User | Count |
---|---|
101 | |
44 | |
41 | |
39 | |
36 |