cancel
Showing results for
Did you mean:

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Post Prodigy

## How to hide display units?

Hi,

I'm wondering how to make the value not show "k", only 25,956

1 ACCEPTED SOLUTION
Community Support

Hi @YunJ ,

We can use three ways to meet your requirement.

1. Create a measure to calculate the value / 1000.

``value /1000 = CALCULATE(SUM('Table'[value]))/1000``

2. Create a measure just show the text of K value.

``````value K =
var x = FORMAT(CALCULATE(SUM('Table'[value])),"#-###")
return
LEFT(x,LEN(x)-4)``````

3. We can create a new table and a slicer to control the units.

``````Slicer measure =
var x = SELECTEDVALUE('Table (2)'[unit])
var sum__ = CALCULATE(SUM('Table'[value]))
var y = CALCULATE(SUM('Table (2)'[Column1]),FILTER('Table (2)','Table (2)'[unit]=x))
return
IF(x="K",sum__/y,sum__)``````

BTW, pbix as attached.

Best regards,

Community Support Team _ zhenbw

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

4 REPLIES 4
Community Support

Hi @YunJ ,

We can use three ways to meet your requirement.

1. Create a measure to calculate the value / 1000.

``value /1000 = CALCULATE(SUM('Table'[value]))/1000``

2. Create a measure just show the text of K value.

``````value K =
var x = FORMAT(CALCULATE(SUM('Table'[value])),"#-###")
return
LEFT(x,LEN(x)-4)``````

3. We can create a new table and a slicer to control the units.

``````Slicer measure =
var x = SELECTEDVALUE('Table (2)'[unit])
var sum__ = CALCULATE(SUM('Table'[value]))
var y = CALCULATE(SUM('Table (2)'[Column1]),FILTER('Table (2)','Table (2)'[unit]=x))
return
IF(x="K",sum__/y,sum__)``````

BTW, pbix as attached.

Best regards,

Community Support Team _ zhenbw

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

Frequent Visitor

Seriously, no other display unit format solution?

Super User
Post Prodigy

Hi, @amitchandak

There is no Property pane under View. Also, under Modeling, there is no custom option for the format.

Announcements

#### New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

#### Power BI Monthly Update - May 2024

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

#### Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors
Top Kudoed Authors