Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
I currently have a graph that display sales within the previous 13 months. The user can choose the year and month, and the graph would show sales in the 13 months prior (including the month of their choice). Below is the screenshot:
Here is the measure I created for the Total sales - Last 13 months:
Right now, I am being asked to adjust the graph, adding another filter called "Number of months", where user can select a number between 3 and 15. For example, if the user chooses 3, then the graph will display sales in the previous 3 months. If the user chooses 10, then the graph will show sales in the previous 10 months. Does anyone have an idea how I can do this?
Solved! Go to Solution.
Hi @hainguyen28
yes. you can simply create number parameter .
then adjust you range accordingly.
Then
change your measure where you have put 13 month
use selectedvalue([Month parameter]))
so it will take your input instead of 13 it will take user input.
make sure put negative (-) sign with selectedvalue([Month parameter]))
I hope I answered your question!
Hi @hainguyen28
yes. you can simply create number parameter .
then adjust you range accordingly.
Then
change your measure where you have put 13 month
use selectedvalue([Month parameter]))
so it will take your input instead of 13 it will take user input.
make sure put negative (-) sign with selectedvalue([Month parameter]))
I hope I answered your question!
Thank you. This is exactly what I was looking for. I was able to add the parameter and adjust my measure accordingly.
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Prices go up Feb. 11th.
Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.
User | Count |
---|---|
145 | |
87 | |
66 | |
51 | |
45 |
User | Count |
---|---|
215 | |
90 | |
83 | |
66 | |
58 |