Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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]) ))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
72 | |
69 | |
55 | |
36 | |
31 |
User | Count |
---|---|
84 | |
63 | |
63 | |
49 | |
45 |