Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I have a fact table called sales. In it there foreign keys to the following dimension tables;
- Region - this includes the region and selling office
- Product - this includes the product name
- Name - this includes the sales rep
I then have some visuals. Let's say a bar chart that groups everything by region (so sales by region)
I want it to sum everything, but only allow the region filter to work from the filter pane. (note, the reason for this is the filters are report level filters, so i want users to be able to use them on other pages, but not this page).
I wrote the following.
amount_dax1 = CALCULATE(SUM(SALES[amount]),ALL('product'),all('name'),ALLEXCEPT(region,region[Region]))
The ALL function is working as intended (the filters are ignored in the product or name dimension). My challenge is the region and selling office are in the same dimension table, but i can't tell it to allow the region filter but ignore the selling office. Note, for other reasons i can't split the region dimension table into 2 dimensions.
For some reason it looks like ALLEXCEPT doesn't acknowledge the filter pane. Is this true or is my syntax wrong? Is there another option?
Thank you!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
106 | |
94 | |
76 | |
62 | |
50 |
User | Count |
---|---|
147 | |
106 | |
104 | |
87 | |
61 |