Forum Discussion
Filter table visual by a slicer
- Anonymous5 years ago
Your equation in the file was really really helpful.
I finally managed to solve the problem using COUNT on "No." column instead of SUM.
Then used the measure in the filter section, and limited it to equal 1 only.
So, final equation:
Measure2 =IF(ISFILTERED(package[package]), CALCULATE(COUNT('Fact'[No]), FILTER('Fact', 'Fact'[Package] IN VALUES(Package[Package]))), CALCULATE(COUNT('Fact'[No]), FILTER('Fact', 'Fact'[Package] in ROW("Package","All Packages"))))
Anonymous , if the tables are disconnected, best option in this case
measure =
var _max = if(isfiltered(package[package]), values(package[package]), ROW("package","All Packages"))
return
calculate(sum(Table[Value]),filter(Table, Table[package] in _max))
if those are connected
measure =
var _max = if(isfiltered(package[package]), values(package[package]), ROW("package","All Packages"))
return
calculate(sum(Table[Value]),filter(package, package[package] in _max), removefilters(package[package]))
- Anonymous5 years agoNot applicable
Thanks.
But this is not the answer to my question.
I don't want to calculate SUM.
I want to filter the table visual.
- amitchandak5 years agoSuper User
Anonymous , Measure has a filter, so if this is the only measure, the visual table will filter. Or all the measures need to follow this type of code
- Anonymous5 years agoNot applicable
Thanks.
But I'm getting errors:
Mind you that column "Value" is a string column (not numeric). Sorry, but I don't understand what you are summing.
Thanks.