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
PeterMc
Frequent Visitor

Putting Measure into a datatable so they can be used in a radar chart

Hi folks

 

I am trying to use a radar chart to show the balance between cost, risk and performance with each having it score on it's own axis (hope that makes sense). To generate the visual I need to have a 2 column table with the name of the item and it's associated value, like this:

ItemScore
Performance 
Cost 
Risk 

 

My problem is that each Score comes from a different measure and this doesn't provide me with the visual I am after. Does anyone know if I could generate a table as above where the values in the Score column come from different measures?

 

Thanks

Peter Mc

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@PeterMc 

You can create a table that has the three score types in it like so.  The "Order" column is simply there if you need to sort the items into a particular order for display.

Score Types = 
DATATABLE (
    "Item", STRING,
    "Order", INTEGER,
    {
        { "Performance", 1 },
        { "Cost", 2 },
        { "Risk", 3 }
    }
)

Next we write a measure to read the Item from the Score Types and return the correct measure.

Scores = 
VAR _Item = SELECTEDVALUE ( 'Score Types'[Item] )
RETURN
SWITCH(
    _Item,
    "Performance",[Performance Measure],
    "Cost",[Cost Measure],
    "Risk",[Risk Measure]
)

Now add the 'Score Types'[Item] column as the category and the [Scores] measure as the axis to the radar chart.

2021-02-26_20-48-17.png

I have attached my sample file for you to take a look at.

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

@PeterMc 

You can create a table that has the three score types in it like so.  The "Order" column is simply there if you need to sort the items into a particular order for display.

Score Types = 
DATATABLE (
    "Item", STRING,
    "Order", INTEGER,
    {
        { "Performance", 1 },
        { "Cost", 2 },
        { "Risk", 3 }
    }
)

Next we write a measure to read the Item from the Score Types and return the correct measure.

Scores = 
VAR _Item = SELECTEDVALUE ( 'Score Types'[Item] )
RETURN
SWITCH(
    _Item,
    "Performance",[Performance Measure],
    "Cost",[Cost Measure],
    "Risk",[Risk Measure]
)

Now add the 'Score Types'[Item] column as the category and the [Scores] measure as the axis to the radar chart.

2021-02-26_20-48-17.png

I have attached my sample file for you to take a look at.

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.