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!Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!
Hi,
I want to calculate no of days by date range.
Please suggest how to do that
Solved! Go to Solution.
Hi @Anonymous
You may create a measure like below.
Measure = COUNT('Table'[Date])
Regards,
Cherie
Hi @Anonymous
You may create a measure like below.
Measure = COUNT('Table'[Date])
Regards,
Cherie
Hi @v-cherch-msft ,
I am trying to filter on the two date, there are no other date between these two. so can i get no of days difference by filter.
Regards,
Gaurav Manral
Hi @Anonymous
You can use DATEDIFF function in DAX.
Please see the attached blog post:
https://blog.crossjoin.co.uk/2015/06/22/using-datediff-to-calculate-time-intervals-in-dax/
Vote for your favorite vizzies from the Power BI World Championship submissions!
If you love stickers, then you will definitely want to check out our Community Sticker Challenge!
Check out the January 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 64 | |
| 53 | |
| 42 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 123 | |
| 104 | |
| 44 | |
| 32 | |
| 24 |