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

Get certified in Microsoft Fabric—for free! For a limited time, the Microsoft Fabric Community team will be offering free DP-600 exam vouchers. Prepare now

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
OCT PBI Update Carousel

Power BI Monthly Update - October 2024

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

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

October NL Carousel

Fabric Community Update - October 2024

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