Get certified for free when you join Fabric Data Days 2026 and dive into Fabric, Power BI, SQL, AI, and other essential data skills.
Join nowTry your skills in the Power BI Dataviz World Championship! Round one ends June 26. Join now
Hi,
I am trying to pull back the count of the account in another table, but also include a filter to select the date.
Currently for the count, it is just bringing back a total instead of it being related to the 'name' column, this is before I have tried to add in the date name. The reference for the date name is year month in the event table.

Can anyone help please?
Thanks
Solved! Go to Solution.
You could use
Jan'25 =
CALCULATE (
COUNTROWS ( Event ),
FILTER (
Event,
Event[Account Name] = Test[Name]
&& Event[Activity Date (Month Year)] = "Jan 2025"
)
)
Perfect, that has worked!
How do I add another filter into the same query to only return anything with a January date? I have a column in the event table called Month Year so I can reference that.
Using the below but it won't work with the second part of the filter.
Thanks!
You could use
Jan'25 =
CALCULATE (
COUNTROWS ( Event ),
FILTER (
Event,
Event[Account Name] = Test[Name]
&& Event[Activity Date (Month Year)] = "Jan 2025"
)
)
As you're creating a calculated column you have a row context, not a filter context, and SELECTEDVALUE only works in a filter context. Just replace the SELECTEDVALUE with Test[Name] and it should work.
Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.
Check out the May 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 22 | |
| 22 | |
| 21 | |
| 20 | |
| 12 |
| User | Count |
|---|---|
| 58 | |
| 55 | |
| 42 | |
| 36 | |
| 35 |