Forum Discussion
Using slicer selection in visual with disabled interaction
- Anonymous2 years ago
Hi Anonymous ,
You can update the formula of measure as below and check if it can return the correct result...
Measure = VAR prepkey = SELECTEDVALUE ( 'PeriodLookup'[PeriodKey] ) - 1 RETURN SUMX ( FILTER ( ALLSELECTED ( 'DataTable' ), 'DataTable'[PeriodKey] = prepkey ), 'DataTable'[Value] )If the above one can't help you get the expected result, please provide some raw data in your table (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It would be helpful to find out the solution. You can refer the following link to share the required info:
How to provide sample data in the Power BI Forum
And It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.
How to upload PBI in Community
Best Regards
Can you please try this
Calucate(
SUMX(FILTER('DataTable','DataTable'[PeriodKey] = [PreviousPeriodKey]),'DataTable'[Value]))Unfortunately, this does not help... I wonder if this might be connected to the fact that I am trying to use a value (PreviousPeriodKey) that is based on slicer selection but in the calculation I am using formulas that might override it?