Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Solved! Go to Solution.
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.
The results of my comparison test are as follows:
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.
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.
The results of my comparison test are as follows:
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
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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi 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)"
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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi 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
Proud to be a Super User!
Check out my blog: Power BI em PortuguêsHi Felix, it is the column I don't want to be shown.
Check out the September 2024 Power BI update to learn about new features.
Learn from experts, get hands-on experience, and win awesome prizes.
User | Count |
---|---|
113 | |
96 | |
89 | |
38 | |
28 |