Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi All,
I am trying to count the number of values at the end of each quarter. If you see my below result for number of Cleanings, it should be 9 for Qtrr 1 2019 and 5 for Qtr 4 2018 but it counts the total and puts 14 in Qtr1 2019. How do I fix this?
IS my formula correct?
Number of Cleanings = CALCULATE(DISTINCTCOUNT('Cleaning Activity'[Id]),FILTER('Cleaning Activity','Cleaning Activity'[Date of Cleaning]<=ENDOFQUARTER('Month'[Month])))Quarter is a calculated column from Months table.
The expected result is the below:
Solved! Go to Solution.
It looks like your 'Cleaning Activity' table has some issues with the relationship to the 'Month' table. Try applying a 'Cleaning Activity'[Date of Cleaning]>=STARTOFQUARTER(Month[Month]) filter to the measure aswell.
Number of Cleanings =
CALCULATE(DISTINCTCOUNT('Cleaning Activity'[Id]),
FILTER(
'Cleaning Activity',
'Cleaning Activity'[Date of Cleaning]<=ENDOFQUARTER('Month'[Month])
&&
'Cleaning Activity'[Date of Cleaning]>=STARTOFQUARTER('Month'[Month])
))
It looks like your 'Cleaning Activity' table has some issues with the relationship to the 'Month' table. Try applying a 'Cleaning Activity'[Date of Cleaning]>=STARTOFQUARTER(Month[Month]) filter to the measure aswell.
Number of Cleanings =
CALCULATE(DISTINCTCOUNT('Cleaning Activity'[Id]),
FILTER(
'Cleaning Activity',
'Cleaning Activity'[Date of Cleaning]<=ENDOFQUARTER('Month'[Month])
&&
'Cleaning Activity'[Date of Cleaning]>=STARTOFQUARTER('Month'[Month])
))
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |