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

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

Reply
jeongkim
Helper V
Helper V

Add enter space in measure

Hi,

Data lable-Detail values not shonw fully due to bars so is there any way to put Enter space to move the values up?

& UNICHAR(10) doesn't work at measure. and we cannot have 2 text sizes 
 

Pls see my measure at the bottom.

 

jeongkim_0-1711507165717.png

 

Measure =
    VAR
        _difference = [vs Last Week]
    VAR
        _direction =
            SWITCH(
                TRUE()
                , _difference > 0, "▲"
                , _difference < 0, "▼"
                , "-"
            )

    VAR
        _direction2 =
            SWITCH(
                TRUE()
                , _difference > 0, "+"
                , "-"
            )
    VAR
        _percentchange =
            _difference / [Last Week Count of $dn]
    RETURN
        _direction & " " & _difference & " (" & _direction2 & FORMAT(_percentchange, "###.##%") & ")" & UNICHAR(10)
1 REPLY 1
v-jianpeng-msft
Community Support
Community Support

Hi, @jeongkim 

After my testing, unchar(10) only works when heading, as shown in the image below:

Measure 2 = ","& UNICHAR(10)&"    "&UNICHAR(100)

I put this measure in the title of the card along with the card, as shown in the image below:

vjianpengmsft_2-1711603155960.png

When I turn off the text wrap function, I successfully implement line wrapping via unchar(10), as shown in the image below:

vjianpengmsft_3-1711603191466.png

Using unchar(10) in places other than the title does not allow for line breaking.

You can change the layout to a single line as shown in the image below:

vjianpengmsft_4-1711603558236.png

In addition, you will need to adjust the range of the Y axis, which is shown as follows without the adjustment range:

vjianpengmsft_5-1711603859805.png

After adjusting the range, the data label will be displayed at the top of the chart, and then you will be adjusting your data label font to match the detail font

vjianpengmsft_6-1711603886967.png

vjianpengmsft_7-1711603991011.png

vjianpengmsft_8-1711604005666.png

 

 

 

 

 

How to Get Your Question Answered Quickly

If it does not help, please provide more details with your desired output and pbix file without privacy information (or some sample data) .

Best Regards

Jianpeng Li

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

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.