Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Good
I would like to group the dates according to the following grouping. how could I do it with DAX or some other functionality?
Solved! Go to Solution.
Hi @Syndicate_Admin ,
Please refer to my pbix file to see if it helps you.
Create columns.
start_ = IF(DAY('table'[Date])>=21,EOMONTH('table'[Date],-1)+21,IF(DAY('table'[Date])<21,EOMONTH('table'[Date],-2)+21))
end_ = IF(DAY('table'[Date])>=21,EOMONTH('table'[Date],0)+20,IF(DAY('table'[Date])<21,EOMONTH('table'[Date],-1)+20))
If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Syndicate_Admin ,
Please refer to my pbix file to see if it helps you.
Create columns.
start_ = IF(DAY('table'[Date])>=21,EOMONTH('table'[Date],-1)+21,IF(DAY('table'[Date])<21,EOMONTH('table'[Date],-2)+21))
end_ = IF(DAY('table'[Date])>=21,EOMONTH('table'[Date],0)+20,IF(DAY('table'[Date])<21,EOMONTH('table'[Date],-1)+20))
If I have misunderstood your meaning, please provide your desired output and your pbix without privacy information.
Best Regards
Community Support Team _ Polly
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
in a date table , new columns
start Date = if( day([Date]) >=21, eomonth([date],-1)+21 ,eomonth([date],0)+21 )
end Date = if( day([Date]) >=21, eomonth([date],0)+20 ,eomonth([date],1)+20 )
Or new table
addcolumns(generateseries(1,12,1), "Start Date" , date(2021,[Value],21) , "End Date" , date(2021,[Value]+1,20) )
I look good, only in some days, it is with intervals of two months.
The idea is, that for example the date 15/03 corresponds to the billing period 21/03 to 20/04.
User | Count |
---|---|
98 | |
90 | |
83 | |
70 | |
67 |
User | Count |
---|---|
113 | |
104 | |
101 | |
73 | |
65 |