Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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.
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
101 | |
78 | |
75 | |
49 |
User | Count |
---|---|
145 | |
108 | |
107 | |
89 | |
61 |