Don't miss your chance to take the Fabric Data Engineer (DP-600) exam for FREE! Find out how by attending the DP-600 session on April 23rd (pacific time), live or on-demand.
Learn moreJoin the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. 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.
Check out the April 2026 Power BI update to learn about new features.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
| User | Count |
|---|---|
| 48 | |
| 46 | |
| 41 | |
| 20 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 69 | |
| 32 | |
| 27 | |
| 26 |