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 nowJuly 28 - August 9 | Final Round of the Power BI Dataviz World Championships. This is your chance. Learn more
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.
If you love stickers, then you will definitely want to check out our community sticker challenge, Barcelona edition!
Check out the July 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 30 | |
| 28 | |
| 23 | |
| 21 | |
| 19 |
| User | Count |
|---|---|
| 41 | |
| 31 | |
| 18 | |
| 18 | |
| 15 |