Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
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!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 53 | |
| 45 | |
| 44 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 73 | |
| 71 | |
| 34 | |
| 33 | |
| 31 |