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 , can you share complete formula you created
My pbix file is very large with many columns and with different column names.
Can you please share the file you created the measures in?
Much appreciated.
- amitchandak5 years agoSuper User
Anonymous , Please find the attached file after the signature.
- Anonymous5 years agoNot applicable
Thanks a lot.
I checked the file. It works well when data "Value" is of type numeric. My data is actually of type String. ( I should have provided a better working example in my post)
Could you please provide a solution for such type of data?
Many thanks
- Anonymous5 years agoNot applicable
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"))))