Forum Discussion

xkoby001's avatar
xkoby001
Frequent Visitor
4 years ago
Solved

Matrix Visual - Filter/Exclude/Hide empty/blank multi level column measure

Hi guys!

I need your wisdom, please! ğŸ˜Š

 

There is a data model, which I represent in Matrix visualisation, it contains multiple-level rows and columns values, see Pic 1:

Pic 1 - Matrix visualisation

 

I defined some measures - A/B simple one, but I need to show it under [Version] = "ACT" only, so I put a condition contains "Filter" function into it, here u can see it on Pic 2:

Pic 2 - "vs_BG%" measure definition

 

Measures appear in every single [Version], but only "ACT" contains not blank values. Its almost there, but my ideal state is on Pic 3:

Pic 3 - Ideal state

I need to suppress empty items, because calculated measures have to be under "ACT" [Version] only, other [Versions] have to contain "Value" only.

 

I used this definition in Excels Power Pivot and it works the way I want, but PBIs behaviour is different.

Pic 4 - Excels DAX measure Test in Pivot Table

 

Pic 5 - Measures definition in Power Pivot

 

Could you please suggest me, how can I reach my ideal state?

 

Thanks in advance! 😄 

  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi xkoby001 ,

    I'm afraid that there is no elegant way to implement it. Anyway, you can use the following method as a workaround...

    hiding columns in Matrix

    Power BI > Hide NULL or BLANK values in Matrix visual

    1. Toggle off the Word wrap option under the Column headers tab

    2. Adjust the size of the Values field(s) with all blank values (for example: vs_BG%) you need to hide small enough to be invisible manually 

    And you can share some sample data and your expected result with backend logic and special examples. It is better if you can provide a simplified pbix file. Later we can provide you a suitable solution base on your provided info. Thank you.

5 Replies

    • xkoby001's avatar
      xkoby001
      Frequent Visitor

      Hi amitchandak ! Thank you for reaction!

      Could you please give me more details, should I define a new one measure, which will combine my current measures?

      ...

      Because two fields [PeriodAnalysis] and [Version] are text fields, they are in Column part of matrix.

      [Value] in Values part of matrix contains fact values, [vs_XX%] are calculated measures.

       

       

       

      • Anonymous's avatar
        Anonymous
        Not applicable

        Hi xkoby001 ,

        I'm afraid that there is no elegant way to implement it. Anyway, you can use the following method as a workaround...

        hiding columns in Matrix

        Power BI > Hide NULL or BLANK values in Matrix visual

        1. Toggle off the Word wrap option under the Column headers tab

        2. Adjust the size of the Values field(s) with all blank values (for example: vs_BG%) you need to hide small enough to be invisible manually 

        And you can share some sample data and your expected result with backend logic and special examples. It is better if you can provide a simplified pbix file. Later we can provide you a suitable solution base on your provided info. Thank you.

  • tamerj1's avatar
    tamerj1
    Community Champion

    Hi xkoby001 

    In thr filter pane adjust the settings for the ACT measure as Not Is Blank. I don't have a clear idea about the complicity of your report therefore you might need to lock the filter of some othe measure using the lock icon at the corner of each measure in the filter pane

    • xkoby001's avatar
      xkoby001
      Frequent Visitor

      Hi tamerj1 !

      Thank you for reaction, but unfortunatelly it distorts reality (if ACT is blank, but BG is not).

      Thank you! ğŸ™‚