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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Ishmale
Helper I
Helper I

Display Multiple Months selected by Slicer on Data Card: Date Table created by DAX

Hello,

 

I am trying to display multiple Months selected by a slicer on a data card. I have created a date table starting from 1/1/23 ending 12/31/23. I have a slicer that selects based on month, on my drill through page I would like to see the data card show the months I have selected in the slicer. I have multiple tables connected to the date table.

Ishmale_2-1689937846323.png

Ishmale_3-1689938015238.png

 

 

 

I tried accomplishing this with the ConcatenateX {x}. I created a new measure for the datetable using the following;

MultiMonthCard =
CONCATENATEX(DateTable, DateTable[Date].[Month], ",")
 
However the result was the following:
Ishmale_0-1689937258582.png

 

Ishmale_1-1689937288736.png

 

The card displays the Month Multiple times, it displays the month repeatedly, to be exact it repeat the exact amount of days in that month, in this instance it displays January 31 times and then February 28 times.  
I have tried wrapping DateTable[Date].[Month] in DISTINCT() to try and only extrapolate the month only once but still cannot complete the objective I am trying to achieve, I tried a couple other functions like SELECTEDVALUE() but still can't find the right way to accomplish it, 
I also tried creating a month column on my datetable turning 1/1/23 into January and so forth and using the Month column on the on the slicer.

 

Any support would be appreciated.

 

 

 

1 ACCEPTED SOLUTION
mlsx4
Memorable Member
Memorable Member

Hi @Ishmale 

 

What if you try to do:

MultiMonthCard =
CONCATENATEX(VALUES(DateTable[Date].Month), DateTable[Date].[Month], ",")

View solution in original post

3 REPLIES 3
mlsx4
Memorable Member
Memorable Member

Hi @Ishmale 

 

What if you try to do:

MultiMonthCard =
CONCATENATEX(VALUES(DateTable[Date].Month), DateTable[Date].[Month], ",")

THANK YOU, MLSX4!

Ishmale_1-1689938801527.png

 

 

But why did wrapping the column in Values() work when Distinct() did not?

mlsx4
Memorable Member
Memorable Member

Hi @Ishmale 

 

I think that it should work if you do this:

MultiMonthCard =
CONCATENATEX(DISTINCT(DateTable[Date].Month), DateTable[Date].[Month], ",")

 The problem is that you probably wrapped the second parameter

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