Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Oros
Post Prodigy
Post Prodigy

Dynamic Title

Hello,

 

I have a calendar with a dropdown selection of the month and a parameter (last X months).  How do you make a measure so that all the selected months will show either in a title of in a card?  It should show the selected month AND the previous X months selected.  Thanks.

 

For example, if March 2024 is selected, and last 3 months is also selected in the parameter,  then the measure (title or card) should show  December, January, February and March

Oros_0-1735672971230.png

 

If July 2024 is selected, and last 2 months is also selected in the parameter, then it should show May, June, July

 

Oros_1-1735673053185.png

 

 

3 ACCEPTED SOLUTIONS
danextian
Super User
Super User

Hi @Oros 

A similar use case was already posted. Attached is the sample pbix

danextian_0-1735733524453.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.

View solution in original post

Anonymous
Not applicable

Thank you danextian and lbendlin 

Hi, @Oros 

I wish you all the best. Previously Super user have provided a solution to help you solve the problem. Since we haven't heard back from you yet, I'd like to confirm if you've successfully resolved this issue or if you need further help?
If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.
If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
Thank you for your patience and look forward to hearing from you.

 

 

Best Regards

Jianpeng Li

View solution in original post

Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1735876153589.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

View solution in original post

7 REPLIES 7
Ashish_Mathur
Super User
Super User

Hi,

PBI file attached.

Hope this helps.

Ashish_Mathur_0-1735876153589.png

 


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

Hi @Ashish_Mathur,

 

As always, you aare very helpful and kind. 🙂  Thank, your solution works! 

You are welcome.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
Anonymous
Not applicable

Thank you danextian and lbendlin 

Hi, @Oros 

I wish you all the best. Previously Super user have provided a solution to help you solve the problem. Since we haven't heard back from you yet, I'd like to confirm if you've successfully resolved this issue or if you need further help?
If yes, you are welcome to share your workaround and mark it as a solution so that other users can benefit as well. If you find a reply particularly helpful to you, you can also mark it as a solution.
If you still have any questions or need more support, please feel free to let us know. We are more than happy to continue to help you.
Thank you for your patience and look forward to hearing from you.

 

 

Best Regards

Jianpeng Li

danextian
Super User
Super User

Hi @Oros 

A similar use case was already posted. Attached is the sample pbix

danextian_0-1735733524453.png

 





Dane Belarmino | Microsoft MVP | Proud to be a Super User!

Did I answer your question? Mark my post as a solution!


"Tell me and I’ll forget; show me and I may remember; involve me and I’ll understand."
Need Power BI consultation, get in touch with me on LinkedIn or hire me on UpWork.
Learn with me on YouTube @DAXJutsu or follow my page on Facebook @DAXJutsuPBI.
lbendlin
Super User
Super User

Have your report users asked for this?  Seems a bit ambiguous and rife for misinterpretation.

 

For example if March 2024 is selected - what should I do if I only want March 2024? Do I have to select at least one prior month?

Hi @lbendlin ,

 

Thank you for your quick reply.  The report users normally get confused as to what months are covered with the selection, especially if the selected X months is more than 1 month.  That is why a dynamic title will help.
Yes, when they select a month from the dropdown, they also have to select at least 1 previous month. 

Thanks again.

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors