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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
Skane
New Member

Date Slicer Value to show in a matrix column header

I was trying to create a balance sheet report and we have a requirement to show selected value from a  date Slicer in a matrix column headers .There are two date slicer one date slicer column is from table called 'End Date -1' (column Name  'End Date -1') and second date slicer column is from table called 'End Date -2' (column Name  'End Date -2')  and both tables does not have any relationships to transaction table.

For values field i have written a two measure called 'End-Amount 1' and 'End Amount 2' which gets sum of amount for Account number  for less than equal to date selected from a 'End Date 1' slicer and 'End Date 2' and it is working giving me correct results.

I have written a measure to get the selected value from date slicer called 'MSR-End Date 1' and 'MSR-End Date 2'  and since this is a measure i can't use it in column fields in a matrix to show the value selected from date slicer.

So is there any way where i can get the value of a date to show in matrix column headers.?     

 

 

Date slicer.PNGMatrix table.PNG

3 REPLIES 3
v-angzheng-msft
Community Support
Community Support

Hi, @Skane 

 

Here's a reference that might help

https://community.powerbi.com/t5/Desktop/Dynamic-column-header-in-Matrix/m-p/954608

 

 

Hope this helps.

 

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

amitchandak
Super User
Super User

@Skane , you can use two date slicers, But they need to come from two independent date tables.

 

Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

 

refer

Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI

 

How to use two Date/Period slicers :https://www.youtube.com/watch?v=WSeZr_-MiTg

Hello,

1. @amitchandak, I can't share the sample file and data file because it has got sensitive information as well

2.@ v-angzheng-msft , The matrix table has already rows and Measures in values section, I need Measure or any calculated column in matrix column section to show the value of date calendar filter.

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.