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
Anonymous
Not applicable

Modify y-axis unit type in diagram

Hello together,

 

I'm a pretty new Power Bi User, so maybe my problem will be quickly solved.

I would like to edit some units to my diagrams ( like [hour] , [pieces] or [liter] )

Unfortunately I just found for the y-axis after enabling "title on" these options:

- "show title"

- "show unit"

- "both"

 

But by using "show unit" there's just the title of my column. So how I can modify the units to [hour], [pieces] or [liter] ?

Do I have to create an extra column with a special measure or something like that?

 

Thank you very much for every helpful answer 🙂

 

Greetings,

 

Sven

1 ACCEPTED SOLUTION

Hi @Anonymous,

 

I think you can try to rename visual field name to add unit.(notice: it not effect the original column name)

 

Sample: Amount to Amount (units)

7.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.

View solution in original post

7 REPLIES 7
v-shex-msft
Community Support
Community Support

Hi @Anonymous,

 

I think you have misunderstood the 'unit'.

Current power bi only support modify the axis numeric unit(e.g thousand, million, hundred), it not means the object unit.(e.g. pieces, liter, dozen...)

 

For these situation, you need to add one table to store unit transform records and manually convert them in calculation.

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi @v-shex-msft,

 

thank you very much for your information!

You mean to calculate my column with a measure right? Like this:

Water Unit = CALCULATE(SUM('Watertable'[Water]) & " liter")

Or have I misunderssod something again?

 

With this measure I couldn't visualize my data in a diagram cause there are no clear numbers...

 

WatertableWatertable

 

Watertable in queryWatertable in query

 

Best regards,

 

Sven

 

 

Hi @Anonymous,

 

As I mentioned, current visual not support text value in value field. 

For your requirement, you can create a unit convert table.(e.g.g In water table, it store liquid with 'Milliliter' unit)

 

Sample:

Name, Rate
Milliliter,1
liter, 0.001
Gallon,0.00026

 

Then you can add a slicer to choose unit and write a measure to dynamic transfer unit.

 

Measure:

dynamic =
VAR selected =
    SELECTEDVALUE ( UnitTransform[Name] )
VAR unit_rate =
    LOOKUPVALUE ( UnitTransform[Rate], UnitTransform[Name], selected )
VAR current_value =
    MAX ( Watertable[Water] )
RETURN
    current_value * MIN ( unit_rate, 1 )

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi @v-shex-msft,

 

thank you very much! It works and of course this is a solution to show the units per diagram.

But in my report I have different diagrams with different units. So using different slicers would look really confusingly.

 

I thought it would be much easier to make some units visible. I guess there's no other solution?

 

Regards,

 

Sven

Hi @Anonymous,

 

I think you can try to rename visual field name to add unit.(notice: it not effect the original column name)

 

Sample: Amount to Amount (units)

7.PNG

 

Regards,

Xiaoxin Sheng

Community Support Team _ Xiaoxin
If this post helps, please consider accept as solution to help other members find it more quickly.
Anonymous
Not applicable

Hi @v-shex-msft,

 

i guess this is the easiest way!

Thank you very much for that!

 

BR,

 

Sven

In his picture it's at the bottom of the menu: "Show value as", but that does not show up for me!  I guess the question now is, how do you get that to show up as a menu choice?

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.