Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Is there a way to calculate DATESINPERIOD between 2 dates?
e.g. DATE(2020,03,01) TO DATE(2021,02,28)
I currently have a calculation to get 365 days ago from today but I need from 1st March 2020 to 28th February 2021:
Solved! Go to Solution.
Hi @Anonymous ,
Try DatesBetween
01 Annual % Counts =
CALCULATE (
[01 No. of Counts] / [00 Total Delivered],
DATESBETWEEN (
'looker_views lkr_Questionnaire'[Questionnaire_DateTime],
DATE(2020,03,01) , DATE(2021,02,28)
)
)
01 Annual % Counts =
VAR a =
DIVIDE (
[01 No. of Counts],
[00 Total Delivered]
)
RETURN
CALCULATE (
a,
DATESBETWEEN (
'looker_views lkr_Questionnaire'[Questionnaire_DateTime],
DATE(2020,03,01) , DATE(2021,02,28)
)
)
https://radacad.com/datesinperiod-vs-datesbetween-dax-time-intelligence-for-power-bi
Regards,
Harsh Nathani
Hi @Anonymous ,
Try DatesBetween
01 Annual % Counts =
CALCULATE (
[01 No. of Counts] / [00 Total Delivered],
DATESBETWEEN (
'looker_views lkr_Questionnaire'[Questionnaire_DateTime],
DATE(2020,03,01) , DATE(2021,02,28)
)
)
01 Annual % Counts =
VAR a =
DIVIDE (
[01 No. of Counts],
[00 Total Delivered]
)
RETURN
CALCULATE (
a,
DATESBETWEEN (
'looker_views lkr_Questionnaire'[Questionnaire_DateTime],
DATE(2020,03,01) , DATE(2021,02,28)
)
)
https://radacad.com/datesinperiod-vs-datesbetween-dax-time-intelligence-for-power-bi
Regards,
Harsh Nathani
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
24 | |
19 | |
14 | |
10 | |
7 |