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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

Display Several Months (Text) with Month Selection (Slicer)

Hello.

I have a measure that displays in a card visual the month selected in the Month slicer.

SelectMonth = IF(HASONEVALUE('Calendar'[Month]),FORMAT(SELECTEDVALUE ('Calendar'[Month]),"mmm",""))
e.g., when Feb is selected, card visual displays "Feb".
However, if more than one Month is selected, then the visual goes blank. See visual below.
So I tried to modify the DAX measure to accommodate more than 1 month .
However, it didn't work - still shows blank - pls see visual below.
Can you please help me modify this DAX measure so that if more than 1 month is selected, so that it will look like this:
"Dec, Jan, Feb" (example).
(Note: Month is in date/time format).
visual.png
Thanks so much!
1 ACCEPTED SOLUTION

I am referring to the Month name of the Calendar Table which has text months.  The column that you are referring to in the CONCATENATEX() function may have date entries.  Check and correct for that. 


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

View solution in original post

5 REPLIES 5
Ashish_Mathur
Super User
Super User

Hi,

This measure works

Measure = CONCATENATEX(VALUES('Calendar'[Month name]),'Calendar'[Month name],",")

Hope this helps.

Ashish_Mathur_0-1708754586795.png

 


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

Thanks Ashish.

Would you be kind enough to modify the DAX so that it will display as "Nov, Dec" instead of currently 11/1/2024. Thanks.

As you can see from the image that i posted, the result is Nov,Dec.


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

I see that, but I don't know why mine is showing as "11/1/2023, 12/1/2023" as you can see from snip. The format is "Text" but it shows up as date format. How can I correct this? Thanks so much Ashish.
Screenshot 2024-02-26 071053.png

I am referring to the Month name of the Calendar Table which has text months.  The column that you are referring to in the CONCATENATEX() function may have date entries.  Check and correct for that. 


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

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors