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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
JustinDoh1
Post Prodigy
Post Prodigy

Hide column using Conditional Logic

I am trying to hide column (in Matrix visual) based on the date.

 

So, from July 2022, I am trying to hide one column.

 

I am sharing my PBIX file here.

 

Currently, from July 2022, there will be no data for Rating1, so I am trying to hide this column if user selects July 2022 and going forward.

 

Until June 2022, there was data for Rating1, so if user selects June 2022 or previous month (which I only display June 2022 here), it should show visual for Rating1 still as well.

 

July 2022:

JustinDoh1_1-1659395431574.png

June 2022:

JustinDoh1_2-1659395496500.png

So, I am trying to create a logic to hide Rating1 if date >= 'July 2022' , something like that.

JustinDoh1_3-1659395842222.png

 

How do I go about doing this?

 

 

2 ACCEPTED SOLUTIONS
Arul
Super User
Super User

@JustinDoh1 ,

I have tried to hide the values in the column but getting rid off them from the table I am not sure. Check if it helps or not.

Arul_0-1659410544322.png

Thanks,

Arul

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

@JustinDoh1 ,

I don't think so.

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


View solution in original post

3 REPLIES 3
Arul
Super User
Super User

@JustinDoh1 ,

I have tried to hide the values in the column but getting rid off them from the table I am not sure. Check if it helps or not.

Arul_0-1659410544322.png

Thanks,

Arul

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


@Arul 

I have a question.

Is there way to automatically size down the width of the column if there is no value (vice versa: automatically size up the column if there is a data)?

Thanks.

 

@JustinDoh1 ,

I don't think so.

Thanks,

Arul





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!


LinkedIn


Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

November Power BI Update Carousel

Power BI Monthly Update - November 2025

Check out the November 2025 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.