Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and a 50 percent discount on exams.
Get startedEarn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi,
I created and formatted a date by sending values
Solved! Go to Solution.
Hi @ydundar
What's result do you want?
Method 1:
get a sum values in the past three months of the selected date
Create two tables
calendar = CALENDARAUTO() filter table = ADDCOLUMNS(CALENDARAUTO(),"year",YEAR([Date]),"month",MONTH([Date]))
Create measures
selected date = DATE(YEAR(TODAY()),SELECTEDVALUE('filter table'[month],MONTH(TODAY())),1) Measure = CALCULATE(SUM('Table'[value]),DATESINPERIOD('calendar'[Date],[selected date],-3,MONTH))
Method 2:
Get a table (for selected date 2019/9/1, table show date from 2019/6/2~2019/9/1)
Table 2 = DATESINPERIOD('calendar'[Date],[selected date],-3,MONTH)
Best Regards Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ydundar
What's result do you want?
Method 1:
get a sum values in the past three months of the selected date
Create two tables
calendar = CALENDARAUTO() filter table = ADDCOLUMNS(CALENDARAUTO(),"year",YEAR([Date]),"month",MONTH([Date]))
Create measures
selected date = DATE(YEAR(TODAY()),SELECTEDVALUE('filter table'[month],MONTH(TODAY())),1) Measure = CALCULATE(SUM('Table'[value]),DATESINPERIOD('calendar'[Date],[selected date],-3,MONTH))
Method 2:
Get a table (for selected date 2019/9/1, table show date from 2019/6/2~2019/9/1)
Table 2 = DATESINPERIOD('calendar'[Date],[selected date],-3,MONTH)
Best Regards Maggie
Community Support Team _ Maggie Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Thanks @v-juanli-msft. That was so helpful.
User | Count |
---|---|
90 | |
74 | |
67 | |
63 | |
55 |
User | Count |
---|---|
99 | |
88 | |
72 | |
60 | |
59 |