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
Ricky190
New Member

Linking a measure to a value so I can add to axis

Hi,

 

Im trying to get my measures which are Good, Poor Neither and dont know to display like the top graph. However I don't know how I would link my measures which are calculating a percentage to show up on the X axis rather than a Legend.

 

Ricky190_0-1626776102423.png

 

1 ACCEPTED SOLUTION

Hi @Ricky190 ,

 

Create a new table:

 

vkkfmsft_0-1626934343052.png

 

Then create a measure linking these measures to the x-axis:

 

 

Measure = 
SWITCH(
    MAX('Table'[Status]),
    "Good", [Good],
    "Neither good nor poor", [Neither good nor poor],
    "Poor", [Poor],
    [I don't remember]
)

 

vkkfmsft_1-1626934399379.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

4 REPLIES 4
Ricky190
New Member

Thanks for your help but im not sure how i would apply this? here is an example of one of my measures:

Ricky190_0-1626778231640.png

So its baically pulling data from 3 different columns and working out what percentage said Good.

Hi @Ricky190 ,

 

Create a new table:

 

vkkfmsft_0-1626934343052.png

 

Then create a measure linking these measures to the x-axis:

 

 

Measure = 
SWITCH(
    MAX('Table'[Status]),
    "Good", [Good],
    "Neither good nor poor", [Neither good nor poor],
    "Poor", [Poor],
    [I don't remember]
)

 

vkkfmsft_1-1626934399379.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.

 

 

Brilliant works a treat!

Wimverh
Resolver IV
Resolver IV

For this type of graph, you would need 1 measure with 4 descriptions.

like this: 

Wimverh_0-1626777125707.png

then you can create it like this

Wimverh_1-1626777168185.png

 

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.