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.
Hi all,
I'm struggling with what I'd call in a tableau world a fixed level of detail expression. In DAX I'm aware they work differently, I've successfully used CALCULATE and ALLEXCEPT in previous formulas where the filter is binary. This one I'm stuck with!
In the below example I am filtered to a store. Sales density is simply Weekly Average Sales/ Traited. I'm wanting the final column 'Sales Density Test' to be the same calculation but fixed to a banding in the dataset based on the store size and its banding. Therefore when you look at Baby you can see the sale density for that store, but also the average sales density in comparable stores.
The size banding could be one of eight options rather than a fixed option. That option changes depending on what store you filter to.
My (failed) attempt below:
Any help or ideas are appreciated. I've combed through several posts but none seemed applicable
Solved! Go to Solution.
So I believe I have fixed this myself. Solution for anybody who stumbles across the post.
The formula was falling down as I was misunderstanding ALLEXCEPT. The way to understand it my side is it creates a blank slate, you then let factors through one by one.
In the below formula I could simply copy the original Weekly Average Sales/ Traited calculation. With no filter criteria applied the calculation mimiked the original. One by one I allowed criteria to influence the calculation, eventually ending up with my answer below.
So I believe I have fixed this myself. Solution for anybody who stumbles across the post.
The formula was falling down as I was misunderstanding ALLEXCEPT. The way to understand it my side is it creates a blank slate, you then let factors through one by one.
In the below formula I could simply copy the original Weekly Average Sales/ Traited calculation. With no filter criteria applied the calculation mimiked the original. One by one I allowed criteria to influence the calculation, eventually ending up with my answer below.
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
10 | |
8 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
10 | |
6 |