Forum Discussion
Remove 100%
CALCULATE(
5 Replies
- amitchandakSuper User
Context of the display is important.
Can you share sample data and sample output.
- josevarasMicrosoft Employee
Your correct, my apologies. Below is a snapshot of visual. As you can see, I get the 100% values returned which is correct, I just prefer to hide them. Thanks
- TomMartensSuper User
Hey josevaras ,
did you check the measure I suggested, Power BI will hide empty columns automatically from the matrix visual if the column is blank (also the Total line), except the option "Show items with no data" is checked for the column used as column header/axis label.
Maybe you want to consider creating a pbix that contains sample data, but still reflects your data model, upload the file to onedrive or dropbox and share the link.
Regards,
Tom
- TomMartensSuper User
Hey josevaras ,
you might check this measure, I have rewritten the OR filter a little, this is more than a habit than solving your problem. The IF(...) is the essential part 🙂
messure = var _checkValue = CALCULATE( SUM('Data TBL'[Total] ) , 'Data TBL'[SKU Level] IN {"Product 1" , "Product 2"} ) return IF(_checkValue = 1 , BLANK() , _checkValue)Hopefully, this provides what you are looking for.
Regards,
Tom
- AnonymousNot applicable
Hi josevaras,
Where did these '100%' value display? Detail row-level or total level? Can you please share more detail information and sample data to help us clarify your scenario?
How to Get Your Question Answered Quickly
If you mean total level, you can take a look at the following document to know how to use if statement to handle hierarchy level:
Clever Hierarchy Handling in DAX
Regards,
Xiaoxin Sheng