Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
121 | |
79 | |
47 | |
45 | |
36 |
User | Count |
---|---|
179 | |
89 | |
69 | |
47 | |
47 |