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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
KathyO
Frequent Visitor

How to make a graph with "Quality" on the 'y' axis?

We do a fortnightly-ish quality audit, where the results look like this:

KathyO_0-1700447444439.png

Ideally I'm trying to get to either:

- a clustered column chart with date on the x-axis and Excellent/Average/Poor on the y-axis, which shows the result for each audited factor on  the date OR

- a line graph, again with date on the x-axis and quality rating on the y-axis, with lines representing each audited factor.

 

Usually I search, and this Forum has the answers, but this one actually has me stumped.  Is it even possible?

 

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @KathyO 
Since value axes in charts are designed for numerical aggregations, their value cannot be a string, but only a number. However, given that the scores in your script are fixed, you can explore a workaround to achieve the desired result.

In the first step, you should unpivot your table with PQ:

Ritaf1983_0-1700453052198.png

Then you'll get a vertical table :

Ritaf1983_1-1700453162134.png

The second step is to give the numeric score for the quality:

Ritaf1983_2-1700453317550.png

Result:

Ritaf1983_3-1700453380731.png

The third step is to create the desired graph with the needed score:

Ritaf1983_4-1700453538907.png

After this lock the limits of the axis according to the score:

Ritaf1983_5-1700453625314.png

switch off the title of the axis

 

Ritaf1983_6-1700453694764.png

create text boxes with the quality in words + put them on the y-axis values

Ritaf1983_7-1700454087250.png

the last step is to group all these construction

Ritaf1983_8-1700454152938.png

**To make the text boxes look better, you need to align them and shrink their borders as much as possible.

Ritaf1983_9-1700454341532.png

Pbix is attached

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

View solution in original post

3 REPLIES 3
KathyO
Frequent Visitor

Thank you so much, that is absolutely perfect!

Happy to help 😊

Ritaf1983
Super User
Super User

Hi @KathyO 
Since value axes in charts are designed for numerical aggregations, their value cannot be a string, but only a number. However, given that the scores in your script are fixed, you can explore a workaround to achieve the desired result.

In the first step, you should unpivot your table with PQ:

Ritaf1983_0-1700453052198.png

Then you'll get a vertical table :

Ritaf1983_1-1700453162134.png

The second step is to give the numeric score for the quality:

Ritaf1983_2-1700453317550.png

Result:

Ritaf1983_3-1700453380731.png

The third step is to create the desired graph with the needed score:

Ritaf1983_4-1700453538907.png

After this lock the limits of the axis according to the score:

Ritaf1983_5-1700453625314.png

switch off the title of the axis

 

Ritaf1983_6-1700453694764.png

create text boxes with the quality in words + put them on the y-axis values

Ritaf1983_7-1700454087250.png

the last step is to group all these construction

Ritaf1983_8-1700454152938.png

**To make the text boxes look better, you need to align them and shrink their borders as much as possible.

Ritaf1983_9-1700454341532.png

Pbix is attached

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.