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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
BigKev
Helper III
Helper III

Showing calculated masure name in bar chart axis

Hi All,

 

How can I display the ‘Calculated Measures’ Name in the Y Axis?

 

Essentially, TEST_1 to TEST_4 are calculated measures.
When I plotted in the bar chart, for some reason there are no options to display the calculated memasures name, unless if I enable Legend.

BigKev_0-1724852960330.png

 

This is what I want to achieve

BigKev_1-1724853002679.png

 

Please Help.

 

Cheers,

Kev

 

 

 

 

 

 

 

This is what I want to achieve

1 ACCEPTED SOLUTION
qqqqqwwwweeerrr
Super User
Super User

Hi @BigKev 

 

This is a workaround that i have tried. 

 

you need to create new table like below

MeasureNames =
DATATABLE(
    "MeasureName", STRING,
    "MeasureType", STRING,
    {
        {"Sum of Sales", "Sum"},
        {"Average of Sales", "Average"}
    }
)
 
for you it will be test 1 to test4 
 
and then create a measure 
Selected Measure =
SWITCH(
    SELECTEDVALUE(MeasureNames[MeasureType]),
    "Sum", [Amount],
    "Average", [average],
    BLANK()
)
 
and this what final output look like 
 
qqqqqwwwweeerrr_0-1724854047645.png

on left if you see i have two measure sum of sale and average of sales but in right chart i have used measure in y-axis and Measure name in x-axis  see below

qqqqqwwwweeerrr_1-1724854117302.png

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: www.youtube.com/@Howtosolveprobem

Regards

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @BigKev 

 

The Power bi doesn't support this feature now.

Maybe you can consider the qqqqqwwwweeerrr's workaround, or you can submit an idea on Microsoft Fabric Ideas:

Home (microsoft.com)

 

 

Best Regards

Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

qqqqqwwwweeerrr
Super User
Super User

Hi @BigKev 

 

This is a workaround that i have tried. 

 

you need to create new table like below

MeasureNames =
DATATABLE(
    "MeasureName", STRING,
    "MeasureType", STRING,
    {
        {"Sum of Sales", "Sum"},
        {"Average of Sales", "Average"}
    }
)
 
for you it will be test 1 to test4 
 
and then create a measure 
Selected Measure =
SWITCH(
    SELECTEDVALUE(MeasureNames[MeasureType]),
    "Sum", [Amount],
    "Average", [average],
    BLANK()
)
 
and this what final output look like 
 
qqqqqwwwweeerrr_0-1724854047645.png

on left if you see i have two measure sum of sale and average of sales but in right chart i have used measure in y-axis and Measure name in x-axis  see below

qqqqqwwwweeerrr_1-1724854117302.png

Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Check for more intersing solution here: www.youtube.com/@Howtosolveprobem

Regards

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

Top Solution Authors