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 everyone,
I'm using REMOVEFILTERS to calculate overall Customer Sales, based on staff_id.
The following works perfectly:
But if I add the same Customer Sales' measure to a variable and then use that variable in CALCULATE instead of the measure, it does not work. It returns Customer Sales for each staff_id, as if REMOVEFILTERS didn't exist.
If a the variable is just storing the Customer Sales measure's result, shouldn't the output be the same?
Solved! Go to Solution.
@Anonymous Yeah, so variables aren't variable in DAX. Once a "variable" is calculated, that's it, the value for the variable remains static. So, what you are doing won't work in DAX.
@Anonymous Yeah, so variables aren't variable in DAX. Once a "variable" is calculated, that's it, the value for the variable remains static. So, what you are doing won't work in DAX.
Got it.
Thank you!
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 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |