Forum Discussion
Using data segmentation filter results in DAX calculation
Hello nix_ferreira,
You can create a variable with the name you specified and enclose the the slicer column you are using with the Selectedvalue (VAR)
Please try below.
new_column =
VAR user_defined_stock=SELECTEDVALUE(slicercolumn)
Return
CALCULATE( column_1 - column_2, stock = user_defined_stock )
Please let me know if it solves your requirement. If so, please accept it as a solution, and your kudo is much appreciated.
Hi! That looks like would do the job, but how can I access the output of that data segmentation filter?
- Moetazzahran2 years agoResolver II
Hello nix_ferreira,
What do you mean access the output of the data segmentation filter?
When you select the value on the slicer, it will automatically be stored as the variable you declared in the measure then it will calculate the value.
Can you please clarify?
Thank you