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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
YashikaAgrawal
Regular Visitor

Matrix Visual

Hello,

 

iam using the Matrix visual, i have got Level1, Level2,Level3, Level4. Eg.. Level 4 is empty.

Output is

Level1

+Level2

+Level3

+Level4

 

Level4 is empty, i do not want to show in report, any ideas how to do this, Thanks..

 

 

10 REPLIES 10
v-jingzhang
Community Support
Community Support

Hi @YashikaAgrawal 

 

You can drag Level_1 to Level_3 columns into the matrix without Level_4, just like below.  

21093004.jpg

 

Best Regards,
Community Support Team _ Jing
If this post helps, please Accept it as Solution to help other members find it.

YashikaAgrawal_0-1633343571883.png

 

 

Level1 is Workforce, under Level1, there are 3 Levels
(No. of employees, no. of Contractors, Employees under)

We are using Matrix visulation to get the output.
Level1, Level2, Level3 are used as rows.

Year is the columns.

Metric_Value i.,e 30000, 29100 are values.

There is no child records for No. of employees, no. of Contractors.

Requirement is whenever there is no child records, no need to display "+" symbol.
since if we select "+" also, nothing is displaying.
for No. of employees, no. of Contractors.

 

YashikaAgrawal_1-1633344336608.png

 

Thanks,

Thanks for the reply, will try this out..

Greg_Deckler
Super User
Super User

@YashikaAgrawal Sorry, having trouble following, can you post sample data as text and expected output?
Not really enough information to go on, please first check if your issue is a common issue listed here: https://community.powerbi.com/t5/Community-Blog/Before-You-Post-Read-This/ba-p/1116882

Also, please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490

The most important parts are:
1. Sample data as text, use the table tool in the editing bar
2. Expected output from sample data
3. Explanation in words of how to get from 1. to 2.


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

YashikaAgrawal_0-1632414279463.png

Thanks for the reply..

Iam having the data in table and by using Matrix visual, the above data is coming.

 

Don’t want null values to be displayed in the matrix, or only those items which has data in the table needs to be displayed ,  Employees and Contractors are having blank/null, its displaying as "+". Nothing should could in front of that.

 

Please let me know any suggestions..

Thanks,

@YashikaAgrawal I doubt I understand the full picture of your source data. Why not just drop Level4  column in PQ?


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Thanks @Greg_Deckler

 

Sorry for the noob question, what is PQ..

 

Source data would be

YashikaAgrawal_0-1632415674623.png

 

Hi @YashikaAgrawal,

 

As @Greg_Deckler has pointed out, there's not really enough detail to answer your question but based on what I understand, if you're expecting 'Social' and 'Workforce' to be blank with the data you've provided and you only want to show 'level 4' when there is data, I think you need to remodel the data. Possibly unpivot level 1-4.

 

If I'm missing the point, I think you're going to need to spend more time explaining your scenario and providing some more usable sample data.

 

Kim 

Have I solved your problem?
Please click Accept as Solution so I don't keep coming back to this post, oh yeah, others may find it useful also ;).
chrome-9xf-Zagzel-B

If you found this post helpful, please give Kudos.
It gives me a sense of instant gratification and, if you give me Kudos enough times, magical unicorns will appear on your screen.
If you find my signature vaguely amusing, please give Kudos.
KIfp67uy-Sr
Proud to be a Super User!PBI-Super-User-Rank-30x30-1x

@YashikaAgrawal Power Query


@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
The Definitive Guide to Power Query (M)

DAX is easy, CALCULATE makes DAX hard...

Can we do this in Power BI, please let me know..

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors