cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Hide Blanks Values in Matrix - Hierarchy

Hi all, 

 

I want to hid the blank values. I use this metric: 

blanks = IF(MAX('Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 5 Name])<>BLANK(),1)

and put it in the visual filter level. But I want to replicate it to the remaining levels. 

I put this metric:

blanks = IF(MAX('Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 5 Name])<>BLANK(),1) &&
        IF(MAX('Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 6 Name])<>BLANK(),1) &&
        IF(MAX('Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 7 Name])<>BLANK(),1) &&
        IF(MAX('Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 8 Name])<>BLANK(),1) &&
        IF(MAX('Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 9 Name])<>BLANK(),1) &&
        IF(MAX('Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 10 Name])<>BLANK(),1)


but it didn't work. Any suggestion ?

Kind regards.

1 ACCEPTED SOLUTION

Accepted Solutions
v-cherch-msft Super Contributor
Super Contributor

Re: Hide Blanks Values in Matrix - Hierarchy

Hi @Anonymous 

You may try to create a measure to get the correct total value.For example:

Measure = 
IF (
    HASONEVALUE ( Table3[Column2] )
        && MAX ( Table3[Column2] ) <> BLANK (),
    SUM ( Table3[Value] ),
    CALCULATE ( SUM ( Table3[Value] ), ALL ( Table3[Column2] ) )
)

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

8 REPLIES 8
v-cherch-msft Super Contributor
Super Contributor

Re: Hide Blanks Values in Matrix - Hierarchy

Hi @Anonymous 

 

You may try below measure:

blanks =
IF (
    MAX ( 'Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 5 Name] )
        <> BLANK ()
        && MAX ( 'Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 6 Name] )
            <> BLANK ()
        && MAX ( 'Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 7 Name] )
            <> BLANK (),
    1
)

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: Hide Blanks Values in Matrix - Hierarchy

Hi @v-cherch-msft 

Thanks for your solution, it's works but there are fields of certain levels of the hierarchy that disappear me :\. 

Once again, thanks! 

v-cherch-msft Super Contributor
Super Contributor

Re: Hide Blanks Values in Matrix - Hierarchy

Hi @Anonymous 

 

Could you explain more about your expected output?I cannot fully understand it.

blanks =
IF (
    MAX ( 'Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 5 Name] )
        <> BLANK ()
        || MAX ( 'Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 6 Name] )
            <> BLANK ()
        || MAX ( 'Performance Indicator Hierarchy'[Performance Indicator Hierarchy Level 7 Name] )
            <> BLANK (),
    1
)

Regards,

Cherie

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: Hide Blanks Values in Matrix - Hierarchy

Hi @v-cherch-msft ,

It's a flattened hierarchy, for example without measure I get this: 

Photo 1.PNG
but when I put the measure I get this:
Photo 2.PNG

The values ​​change, and brand marketing, for example, also disappears.

If you need more information, please tell me and thank you very much to try help me.

Kind regards. 

v-cherch-msft Super Contributor
Super Contributor

Re: Hide Blanks Values in Matrix - Hierarchy

Hi @Anonymous 

Could you  share a simplified sample and your expected output?

 

Regards

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Re: Hide Blanks Values in Matrix - Hierarchy

Hi @v-cherch-msft 

I want to apply the same method that exists in the analysis service, the option "hide blank members":
photo 3.jpg
I just want to remove the blanks: 
Photo 1.PNG
and if apply the metric, as you can compare, the brand marketing record (for example) disappears, and the values ​​change. (Brand Marketing: -499.39 to -0.89)
Photo 2.PNG

I tried to make a replace values ​​for null, but i didn't succeed. 

Kind regards. 

v-cherch-msft Super Contributor
Super Contributor

Re: Hide Blanks Values in Matrix - Hierarchy

Hi @Anonymous 

You may try to create a measure to get the correct total value.For example:

Measure = 
IF (
    HASONEVALUE ( Table3[Column2] )
        && MAX ( Table3[Column2] ) <> BLANK (),
    SUM ( Table3[Value] ),
    CALCULATE ( SUM ( Table3[Value] ), ALL ( Table3[Column2] ) )
)

1.png

Regards,

Community Support Team _ Cherie Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Anonymous
Not applicable

Re: Hide Blanks Values in Matrix - Hierarchy

Hi Guys,

Is possible apply this solution for more hierarchies columns?

For example adding one culumn

 

Column 1Column 2Column 3Value
aa1a31
aa1 2
aa2a43
a a44
ab1 2
a b32
ab1 3
ab2b44

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

Ask Amanda Anything Q&A

Ask Amanda Anything Q&A

Learn the answers to some of the questions asked during the Amanda Triple A event.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Users Online
Currently online: 367 members 3,655 guests
Please welcome our newest community members: