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

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.

Reply
aishak12
Helper IV
Helper IV

Dynamic Dates for Textbox

Hello All,

I am currently using this formula to show a textbox of the selected date on my filter.

 

CurrentMonth = SELECTEDVALUE(Query1[TransDate].[Month])
 
However, when selecting more than one month the textbox shows "BLANK". Is there an option to show the multiple selected months  for example: ("January - March")  or ("January, February, March) 

 

 

aishak12_0-1613151829686.png

 

1 ACCEPTED SOLUTION
v-yiruan-msft
Community Support
Community Support

Hi @aishak12 ,

You can create a measure as below:

Measure =
CONCATENATEX (
    ALLSELECTED ( 'Query1'[TransDate].[Month] ),
    'Query1'[TransDate].[Month],
    ","
)

yingyinr_0-1613465138223.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

6 REPLIES 6
v-yiruan-msft
Community Support
Community Support

Hi @aishak12 ,

You can create a measure as below:

Measure =
CONCATENATEX (
    ALLSELECTED ( 'Query1'[TransDate].[Month] ),
    'Query1'[TransDate].[Month],
    ","
)

yingyinr_0-1613465138223.png

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
vanessafvg
Super User
Super User

you can try something like this

 

test =
CONCATENATEX ( VALUES ( query1[TransDate] ), [TransDate], "," )





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Thank you for the suggestion, I attempted this and see all the dates used. However I only want to see the months used in the filter 

 

aishak12_0-1613155983248.png

 

did you try it with the month?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Would you ellaborate more, im sorry not too advanced on DAX

dont worry, sorry you can't use month in that context, let me come to you 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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