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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Surendra_thota
Helper II
Helper II

How to achieve Dynamic date attribute selection for Matrix columns

Hi All

 

currently in Matrix we are using date hierrchy , instead of that we have to select day/week/month based on the selection any of these values used in columns of matrix

 

column Dynamically.PNG

 

 

I have tried to create a table  with values  Day , week , Month

 

tried to create measure like this but columns are not coming only measure are coming

 

Selected Value =
IF(HASONEVALUE( SelectedValue[column]),
SWITCH(VALUES( SelectedValue[column]),
"Day", Date[Day],
"Week", Date[Week Ending],
"Month", Date[Month] )
), "Please select only one value to display")

 

Please let me know is there any way to select  Date[Day] , Date[Week Ending] ,Date[Month] dynamiclly in matrix 

2 REPLIES 2
Dgarach
Regular Visitor

Hi,

 

I am trying to the same thing but with charts to be able to have, for example, 2016 selected, then able to switch between "Monthly", "Weekly" and "Daily" so that the axis scales based on the selection.

 

No luck as yet but I hope someone else can assist or MS updates PBI so that it can.

 

Darshik

v-yuezhe-msft
Employee
Employee

@Surendra_thota,

I am not very clear about your requirement, please help to share sample data of your  table and post expected result with screenshot.

If you want to dynamically hide column in Matrix based on selection, it is not possible. One option is to hide or show the values in the column by creating measures, but column headers are still appeared even there is no data.

Regards,
Lydia

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

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.