Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi,
I have multiple slicers (Location, Gender, Age, etc). I want to count all rows for any value which matches with the slicer selection.
Example - If user selected Location=US, UK + Gender=Female + Age=18-24 Years, the output should be anyone who is from Locations = US or UK, OR Gender is Female OR Age is 18-24 Years.
I tried below formula but not working.
Solved! Go to Solution.
Need a all() to remove the current filter context
SelectedEmployees =
CALCULATE(
COUNTROWS(tblData),
FILTER(
All( 'tblData' ),
(tblData[Location] in VALUES(tbLocations[Locations]) ||
tblData[Gender] in VALUES(tblGender[Gender]) ||
tblData[Age] in VALUES(tblAge[AgeGroups]))
)
)
Make sure these 3 tables tbLocations, tblGender, tblAge DON'T filter each other. If so, the measure is fairly simple,
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
SelectedEmployees =
CALCULATE(
COUNTROWS(tblData),
ALL('tbLocations'),ALL(tblGender), ALL(tblAge),
OR(OR(tblData[Location] in VALUES(tbLocations[Locations]),
tblData[Gender] in VALUES(tblGender[Gender])),
tblData[Age] in VALUES(tblAge[AgeGroups]))
)
Hi @Kosh ,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Chaithanya.
Hi @Kosh ,
As we haven’t heard back from you, we wanted to kindly follow up to check if the solution provided for the issue worked? or Let us know if you need any further assistance?
If our response addressed, please mark it as Accept as solution and click Yes if you found it helpful.
Regards,
Chaithanya.
Make sure these 3 tables tbLocations, tblGender, tblAge DON'T filter each other. If so, the measure is fairly simple,
Expertise = List.Accumulate( {Days as from Today}, {Skills and Knowledge}, (Current, Everyday) => Current & Day.LearnAndPractise(Everyday) ) |
Need a all() to remove the current filter context
SelectedEmployees =
CALCULATE(
COUNTROWS(tblData),
FILTER(
All( 'tblData' ),
(tblData[Location] in VALUES(tbLocations[Locations]) ||
tblData[Gender] in VALUES(tblGender[Gender]) ||
tblData[Age] in VALUES(tblAge[AgeGroups]))
)
)
Thanks for the reply. How to show this data in a table/matrix with breadkdown by any field? Using ALL in filter is giving same value for all rows table/matrix.
SelectedEmployees =
CALCULATE(
COUNTROWS(tblData),
ALL('tbLocations'),ALL(tblGender), ALL(tblAge),
OR(OR(tblData[Location] in VALUES(tbLocations[Locations]),
tblData[Gender] in VALUES(tblGender[Gender])),
tblData[Age] in VALUES(tblAge[AgeGroups]))
)
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
22 | |
7 | |
6 | |
6 | |
6 |
User | Count |
---|---|
27 | |
12 | |
10 | |
9 | |
6 |