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.
have an IT helpdesk table that has one of its colums as Status(closed as ID 1 , open as ID 2, Inprogress as ID 3).
I created a date table with Year(2020, 2021, 2022, 2023), Qtr and month columns.
I want to calculate how many Closed tickets we have based on the ticket status and year 2023.
I tried CALCULATE(COUNT(table[status]), FILTER (Table, Table[status]] = 1 && Date[Year] = 3 but it's not working.
My model looks okay, it's all 1 to many relationships.
Someone pls help me and also explain the concept as well.
Thank you
Solved! Go to Solution.
CALCULATE(
COUNTROWS (table),
Table[status] = 1,
Date[Year] = 2023
)
This assumes the date dimension is joined to the main table on ticket's close date/month. Otherwise will need a inactive relation to close date, and use USERELATIONSHIP to activate it in the measure
I created a date table with Year(2020, 2021, 2022, 2023), Qtr and month columns.
a date table needs a date column.
It has a date column which is connected to the date column on the Fact table
CALCULATE(
COUNTROWS (table),
Table[status] = 1,
Date[Year] = 2023
)
This assumes the date dimension is joined to the main table on ticket's close date/month. Otherwise will need a inactive relation to close date, and use USERELATIONSHIP to activate it in the measure
I found where the error is. Your solution is correct thanks for your help.
Thank you, when I do this, it doesn't work, says my date table is not an actual table
Can we see some examples data to get a better idea of how to help
These are screenshots of some columns in the data, not sure what i am doing wrong please. Thank you
Not sure your first images has uploaded correctly
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
10 | |
6 |