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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
AleksandrMe
Resolver I
Resolver I

Visualization Graphs/Average and Labels

Good day Community, 

 

I have prbably simple question. I have data which looks like that. Data comes from similar Excel files from different assessments:

                       

                   ITEM 1                               ITEM 2                    ITEM 2

Manager      GOOD                               BAD                    NOT ASSESSED

Operator   NOT ASSESSED                 VERY GOOD               BAD

Assistant       GOOD                       AVERAGE                      NOT ASSESSED   

 

In a background of Excel, I have chaged asessemnt crtieria to NUMBERS to allow better visualization for AREA CHARTS etc... Text can only be presented by PIE CHARTS in %.  

 

GOOD is 5

AVERAGE is 3 

NOT ASSESED is 0 

 

Question #1: In need average mark for every  item, how to exclude 0 mark from average. I do not want to hide 0 as I want to know how many times "NOT ASSESSED" was used. 

 

Question#2: On are chart, It will preferlty show what I need if I use numbers - Can I change legend and labels in Power Bi to customize numbers back to TEXT for better understanding of reader? 

 

Thnaks

Aleks 

 

 

 

1 ACCEPTED SOLUTION

@AleksandrMe 
For Q2, you may create another column as the labels, something like:

 

Column 2 = SWITCH(TRUE(),[Measure]<3,"Don't Meet Standard",[Measure]>=3,"Meet Standard")

 

Paul Zheng _ Community Support Team
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

3 REPLIES 3
Greg_Deckler
Super User
Super User

@AleksandrMe - I would unpivot those last three columns (ITEM1, ITEM2, ITEM3) in Power Query. You could get the average of no 0's by doing something like:

You could create a column then like this:

Column = SWITCH([Value],"GOOD",5,"AVERAGE",3,"NOT ASSESSED",0)

Then a measure like this:

Measure = AVERAGEX(FILTER('Table',[Column]<>0),[Column])


@ 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...

@Greg_Deckler  - Thanks Greg. 

 

I figured out how to deal with average exlusion of ) values. However still not able to figure out if my another idea is possible at all. 

 

Please see screen - TO have this graph I need Numbers but Not Text. I woul like to keep this type of graph by I woul like to use text for labels - this is where I struggle. Reader needs to undertand what 3.0 means, this for example "Meet Standard" etc...

 

AleksandrMe_0-1599740921619.png

 

@AleksandrMe 
For Q2, you may create another column as the labels, something like:

 

Column 2 = SWITCH(TRUE(),[Measure]<3,"Don't Meet Standard",[Measure]>=3,"Meet Standard")

 

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

 

 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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