Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. 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)
)
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 44 | |
| 43 | |
| 38 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 68 | |
| 64 | |
| 31 | |
| 29 | |
| 24 |