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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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