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

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
Ramya616
Helper I
Helper I

How to convert a column into measure without changing any values so I can use the measure on Y-Axis?

How to convert a column into measure wihtout changing any values so that I can use the measure on the Y-Axis (using field parameter)? To use field parameter on Y-Axis, it should be a measure. 

@amitchandak @lbendlin @Ashish_Mathur 

1 ACCEPTED SOLUTION
Ramya616
Helper I
Helper I

@v-yiruan-msft  Thank you for your reply. I have a column with values of total sales for each month. So I used Measure_Total Sales=AVERAGE(Sales[Total Sales]) then it created a measure with same values of toal values without changing any data. It solved the issue.Thank you.

Total SalesYearMeasure_Total Sales
10202110
20202220
30202330

View solution in original post

3 REPLIES 3
Ramya616
Helper I
Helper I

@v-yiruan-msft  Thank you for your reply. I have a column with values of total sales for each month. So I used Measure_Total Sales=AVERAGE(Sales[Total Sales]) then it created a measure with same values of toal values without changing any data. It solved the issue.Thank you.

Total SalesYearMeasure_Total Sales
10202110
20202220
30202330

Hi @Ramya616 ,

It's glad to hear that your problem has been resolved. And thanks for sharing your solution here. Could you please mark your post as Answered? It will help the others in the community find the solution easily if they face the same problem as yours.  Thank you.

Best Regards

Community Support Team _ Rena
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-yiruan-msft
Community Support
Community Support

Hi @Ramya616 ,

You can refer the following links to get it as an workaround.

DAX Measure in the Axis of the Power BI Report

1. Create a dimension table

yingyinr_0-1656908687386.png

2. Create a measure as below

yingyinr_1-1656908707704.png

The workaround of using the measure as axis in the visual

Use Measures in Columns of a Matrix Visual

If the above one can't help you get the desired result, please provide some sample data in your tables (exclude sensitive data) with Text format and your expected result with backend logic and special examples. It is better if you can share a simplified pbix file. You can refer the following link to upload the file to the community. Thank you.

How to upload PBI in Community

Best Regards

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

Helpful resources

Announcements
Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

February 2024 Update Carousel

Power BI Monthly Update - February 2024

Check out the February 2024 Power BI update to learn about new features.

Fabric Career Hub

Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors