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 all,
I am inquiring about how to create a column graph that displays data for the last 24 months, with the ability to select a specific month and have the graph adjust to display data for the selected month and 23 months before.
For example, if today is May 2023, the graph would display data from June 2021 to May 2023 by default. However, if you selected January 2023 in the time slicer, the graph would adjust to display data from February 2021 to January 2023.
Additionally, I have included a rolling 12-month line trend to the column chart, and I would like to make it also dynamically adjustable.
Thank you in adevance!
Solved! Go to Solution.
Hi @Jia_Shi
Please follow the attached tutorial link.
https://www.youtube.com/watch?v=duMSovyosXE
It seems like your case
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
Hi @Jia_Shi
You can try to use EOMONTH() function.
e.g
Measure =
CALCULATE (
SUM ( 'Table'[Sales] ),
FILTER (
'Table',
[Date]
>= EOMONTH ( SELECTEDVALUE ( 'Table'[Date] ), -14 ) + 1
&& [Date] < SELECTEDVALUE ( 'Table'[Date] )
)
)
You can refer to the following link to know more about this function.
EOMONTH function - Microsoft Support
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Jia_Shi
You can try to use EOMONTH() function.
e.g
Measure =
CALCULATE (
SUM ( 'Table'[Sales] ),
FILTER (
'Table',
[Date]
>= EOMONTH ( SELECTEDVALUE ( 'Table'[Date] ), -14 ) + 1
&& [Date] < SELECTEDVALUE ( 'Table'[Date] )
)
)
You can refer to the following link to know more about this function.
EOMONTH function - Microsoft Support
Best Regards!
Yolo Zhu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @Jia_Shi
Please follow the attached tutorial link.
https://www.youtube.com/watch?v=duMSovyosXE
It seems like your case
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly
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 |
---|---|
96 | |
93 | |
82 | |
70 | |
64 |
User | Count |
---|---|
116 | |
106 | |
94 | |
79 | |
72 |