Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi, I need to add a date range for my Canada customer count measure please. I currently have:
Measure 1: Customer_Count = Count('Sheet1'[Customer_ID])
Customer_ID | Country | Date |
1 | Canada | 01/04/2024 |
2 | Canada | 02/04/2024 |
3 | Canada | 04/05/2024 |
4 | USA | 01/04/2024 |
5 | USA | 08/05/2024 |
6 | UK | 03/04/2024 |
7 | UK | 05/05/2024 |
8 | UK | 01/06/2024 |
9 | UK | 06/06/2024 |
10 | UK | 10/06/2024 |
Thanks
Solved! Go to Solution.
Hi,
you can try add one more filter inside calculate like this.
Canada_Count =
CALCULATE(
COUNT('Sheet1'[Customer_ID]),
'Sheet1'[Country] = "Canada",
'Sheet1'[Date] >= DATE(2024, 4, 1),
'Sheet1'[Date] <= DATE(2024, 4, 30)
)
Hi @RichOB
Below mention calculation only for the April Month Count .
Canada_Count = CALCULATE('Sheet1'[Canada], 'Sheet1'[Country] = "Canada"),AND(Date Colum>=01/04/2024,Date column<=30/04/2024)
Thanks,
Thennarasu R
If answered your questions mark accepeted a solution and give kudo !
Hi,
you can try add one more filter inside calculate like this.
Canada_Count =
CALCULATE(
COUNT('Sheet1'[Customer_ID]),
'Sheet1'[Country] = "Canada",
'Sheet1'[Date] >= DATE(2024, 4, 1),
'Sheet1'[Date] <= DATE(2024, 4, 30)
)
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 |
---|---|
84 | |
76 | |
75 | |
43 | |
36 |
User | Count |
---|---|
109 | |
56 | |
52 | |
48 | |
43 |