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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

Reply
ale-hd
Helper I
Helper I

Datas show up in Matrix visual also applying Filters from Filters Panel

Hi all, having a Matrix I am trying to show only the categories for which a certain value is different than 0, or different than blank.

More specifically, from the images attached, I want the data to be shown only when the value "RMS Vs PP" has any value.... (it is a variation, I want to see only the profiles that had a variation in a certain period).

 

The point is that even applying this filter on the visual I still see data also for the categories with Blank or 0 values on this index. 

In the example you can see this profile "Orizzonti", but it should not be visible since it has the "RMS Vs PP" values that is blank.

 

Why? Maybe I am misunderstanding the use of the filters?

How can I solve?

 

NOTE: you see the visual filters as "is not blank" but I also tried "is not 0", is "greater than 0" etc. etc.

 

Thank you very much for any help, Alessandro.

 

Filters 2.JPGFilters 1.JPG

1 ACCEPTED SOLUTION
v-kkf-msft
Community Support
Community Support

Hi @ale-hd ,

Try to create two measures:

 

RMS_NotNullValue = 
CALCULATE(
    SUM('Table'[Value]),
    FILTER(
        'Table',
        'Table'[All Prenotanti] = "RMS Vs PP"
    )
)

 

 

Matrix Columns = 
var tab = 
    CALCULATETABLE(
        VALUES('Table'[Column]),
        FILTER(
            'Table',
            [RMS_NotNullValue] <> BLANK()
        )
    )
return 
    COUNTROWS( INTERSECT( tab, VALUES('Table'[Column]) ) )

 

 

Then put measure Matrix Columns in the pane shown in the figure below. 

 

image.png

The results of my comparison test are as follows:

image.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

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

9 REPLIES 9
v-kkf-msft
Community Support
Community Support

Hi @ale-hd ,

Try to create two measures:

 

RMS_NotNullValue = 
CALCULATE(
    SUM('Table'[Value]),
    FILTER(
        'Table',
        'Table'[All Prenotanti] = "RMS Vs PP"
    )
)

 

 

Matrix Columns = 
var tab = 
    CALCULATETABLE(
        VALUES('Table'[Column]),
        FILTER(
            'Table',
            [RMS_NotNullValue] <> BLANK()
        )
    )
return 
    COUNTROWS( INTERSECT( tab, VALUES('Table'[Column]) ) )

 

 

Then put measure Matrix Columns in the pane shown in the figure below. 

 

image.png

The results of my comparison test are as follows:

image.png

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

Best Regards,
Winniz

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Thank you I will try as soon as possible!

Hi @ale-hd ,

 

Does your problem have been solved? If it is solved, please mark a reply which is helpful to you.

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.

 

Best Regards,
Winniz

MFelix
Super User
Super User

Hi @ale-hd ,

 

Cannot be sure about the image you are presenting but if you have more columns on your visualization the line is showned because the other columns have values.

 

Do you have any other columns values on your matrix that have values for this specific rows that you have filtered out or is all the values on those rows also blank?


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi Miguel thank for answering me.

 

I'll attach a larger image.

The answer is YES, there are others columns, realted to different "profiles" (named as prenotanti in the image) with values not blank, like in the example below. But it seems to be not the point: there many others, with all blank values in each row, that are not listed. 

 

So it seems that Power BI is answering me this way: even if you tell me to filter only the profiles with Non_Blank values in the "RMS Vs PP" row, if there are other values in other ros for that profile I will show it anyway. 

In fact I have the same (wrong) result for all the profiles that have at least one non-blank value in any row....

 

But my request to Power BI is meant to be "Ignore the other rows, just do not show that profile if the value "RMS Vs PP" is blank (or 0)"

 

Cattura.JPG

Hi @ale-hd ,

 

I understand your frustation but be aware that the way your model is setup, and the visualizations all impact on the final result of the visualization. So you can other values that impact the filtering.

 

In this case and correct me if I'm wrong you have the measures in rows is this right?

This image is also the ones with the total I see that 2020 has a + and there is no months, I'm correct?

 

The fact that you are using the measure in rows, the hierarchy in columns and that you have the totals highligted is impacting your filtering.

 

To achieve this believe you need to change your measure in order for the totals get evaluated in a different way and return expected result.

 

If you can tell me the exact result and are abble to share a mockup data or sample of your PBIX file. You can use a onedrive, google drive, we transfer or similar link to upload your files.

If the information is sensitive please share it trough private message.

I can try and check what is needed to change.

 

Context transition is very important in Power BI.

 

 

 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi Miguel, I thank you very much for your really kind offer, but I think it is actually impossibile to me to share the file with you. Not because of sensitive data, but because the model is really really complex and to explain it would be really hard. 

Your comment is very useful, I think showed me on which direction afford the problem (but resolving it is a long way from here... 🙂 )

 

Since it is clear I am not going to have answer from this forum (because it is clearly necessary to study the .pbix for it), what should I do to "close" my post?

 

Alessandro

Hi @ale-hd ,

 

I understand what you say, and realize that the models influence this in a big part. If you want me to take a crack at trying to help you even with bug explanations about the model please fell free to reach out.

 

I have also went back and was reading your initial problem do you want to make the row or the column not be showned? 

 

 


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



Hi Felix, it is the column I don't want to be shown.

Helpful resources

Announcements
Sept PBI Carousel

Power BI Monthly Update - September 2024

Check out the September 2024 Power BI update to learn about new features.

September Hackathon Carousel

Microsoft Fabric & AI Learning Hackathon

Learn from experts, get hands-on experience, and win awesome prizes.

Sept NL Carousel

Fabric Community Update - September 2024

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

Top Kudoed Authors