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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
hr_tetra
Helper I
Helper I

Report builder - hide values by category name

Hi everyone,

 

I have a table with different statistics for the previous day, where the different categories are presented as sum, avg, max and mean. For some categories the sum does not make sense, e.g. sum of the pressure during a day. So I want to hide some of the categories.

 

The issue is I am only able to hide one category by hiding by expression. I am clicking the relevant column, then I go to Visibility in the right pane, and choose Hidden by Expression. 

 

=Fields!DimWell2_Level_1.Value = "Category name"

 

It works, but I want to do several names, but cannot find a way to do it. I have tried different Or/And, without success. Anyone got a clue?

 

Best regards,

Ole

1 ACCEPTED SOLUTION
AlexisOlson
Super User
Super User

I would expect Or to work like this:

=(Fields!DimWell2_Level_1.Value = "Category name 1") Or (Fields!DimWell2_Level_1.Value = "Category name 2") Or (Fields!DimWell2_Level_1.Value = "Category name 3")

View solution in original post

2 REPLIES 2
AlexisOlson
Super User
Super User

I would expect Or to work like this:

=(Fields!DimWell2_Level_1.Value = "Category name 1") Or (Fields!DimWell2_Level_1.Value = "Category name 2") Or (Fields!DimWell2_Level_1.Value = "Category name 3")

That worked! I was missing the ().

 

Thanks alot!

 

Ole

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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.