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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Chris_Leiper
Frequent Visitor

Displaying Multiple dates in a Power Bi Matrix Visual

Hello, 

 

Was wondering whether anyone would be able to help. 

 

I am looking to use a matrix to show dates for meetings across the year. When there is one meeting date across a month using a date column works ideally. as shown below:

Chris_Leiper_0-1686664385415.png

The issue comes from if there are two dates in the same month. The data looks like this:

Chris_Leiper_1-1686664560412.png

Column 1 & 2 are standard date columns and the third column is a custom column showing the ideal information to be shown. 

 

is there any way of showing this data?

 

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

Hi @Chris_Leiper ,

 

If your dates are in different columns, I suggest you to UNPIVOT your table and then create a measure to show date.

vrzhoumsft_1-1686813581537.png

Unpivoit>

vrzhoumsft_0-1686813408757.png

Measure:

Combine = CONCATENATEX('Table','Table'[Value],"-")

Create a calculated table:

Calendar = ADDCOLUMNS(CALENDARAUTO(),"Year Month",YEAR([Date]) * 100 + MONTH([Date]),"Month Year",FORMAT([Date],"MMMM YYYY"))

Result is as below.

vrzhoumsft_2-1686813604520.png

Best Regards,
Rico Zhou

 

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

2 REPLIES 2
v-rzhou-msft
Community Support
Community Support

Hi @Chris_Leiper ,

 

If your dates are in different columns, I suggest you to UNPIVOT your table and then create a measure to show date.

vrzhoumsft_1-1686813581537.png

Unpivoit>

vrzhoumsft_0-1686813408757.png

Measure:

Combine = CONCATENATEX('Table','Table'[Value],"-")

Create a calculated table:

Calendar = ADDCOLUMNS(CALENDARAUTO(),"Year Month",YEAR([Date]) * 100 + MONTH([Date]),"Month Year",FORMAT([Date],"MMMM YYYY"))

Result is as below.

vrzhoumsft_2-1686813604520.png

Best Regards,
Rico Zhou

 

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

Thanks for the reply. @v-rzhou-msft 

 

Do you think it is possible to Format 22/06/2023-23/06/2023 to Thursday 22nd & Friday 23rd?

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.