cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
YunJ
Post Prodigy
Post Prodigy

How to hide display units?

Hi,

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

Capture.PNG

 

Capture.PNG

1 ACCEPTED SOLUTION
v-zhenbw-msft
Community Support
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

 

H1.jpg

 

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)

 

H2.jpg

 

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

 

h 3.jpg

 

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__)

 

H 4.jpg

 

H 5.jpg

 

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.

View solution in original post

4 REPLIES 4
v-zhenbw-msft
Community Support
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

 

H1.jpg

 

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)

 

H2.jpg

 

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

 

h 3.jpg

 

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__)

 

H 4.jpg

 

H 5.jpg

 

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.

Seriously, no other display unit format solution? 

amitchandak
Super User
Super User

Hi, @amitchandak 

 

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

Capture.PNGCapture.PNG

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Dashboard in a day with date

Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors