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

Vote for your favorite vizzies from the Power BI Dataviz World Championship submissions. Vote now!

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

Anonymous
Not applicable

@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

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

Vote for your favorite vizzies from the Power BI World Championship submissions!

Sticker Challenge 2026 Carousel

Join our Community Sticker Challenge 2026

If you love stickers, then you will definitely want to check out our Community Sticker Challenge!

January Power BI Update Carousel

Power BI Monthly Update - January 2026

Check out the January 2026 Power BI update to learn about new features.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.