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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Wei2
Helper I
Helper I

different decimal places in one Line chart

I have a Line chart with 2 legent values. 

How can I  show one line with 1 decimal place and the one line with 3 decimal places in this chart?  

10 REPLIES 10
Wei2
Helper I
Helper I

Thanks.  Does that mean that I cannot do it in measure?  I need to create a new column for it? 

Also actually I don't need to do any calculation.  The reason I used SUM is that I thought I can use FORMAT or ROUND for it.   The thing is that I just need to show data as it is with different decimal?  May I know what I can do it? 

My table is like:

JournalMetric2015201620172018
Biophysical JournalCitescore6.76.46.36.2
Biophysical JournalImpact Factor3.9723.6323.6563.495

Sorry again.  I've fixed IF function.  But my numbers still show 2 decimals.

Sorry my bad I misunderstood you at the first place. 

So I tried the IF function by creating a new column.  

But I got the following error message? 

Wei2_0-1655906654837.png

Don't know why??

v-cazheng-msft
Community Support
Community Support

Hi @Wei2

 

You may try this solution.

Here is the sample data.

vcazhengmsft_0-1655864278216.png

 

Create a Calculated column.

FormatedNumeric =
IF (
    CONTAINSSTRING ( 'Table'[Product], "A" ),
    ROUND ( 'Table'[Sales], 1 ),
    ROUND ( 'Table'[Sales], 3 )
)

 

Create a Measure.

Total = SUM('Table'[FormatedNumeric])

 

Then, the result looks like this.

vcazhengmsft_1-1655864278219.png

 

Also, attached the pbix file.

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. If I misunderstand your needs or you still have problems on it, please feel free to let me know. Thanks a lot!

 

Best Regards,

Community Support Team _ Caiyun

I know what happened.  I need to change the display unit to None and it worked. 

The default is Auto. 

 

Thank you for your great help. 

Hi @Wei2,

 

That’s great! Thanks for your reply!

 

Could you please help mark the solution by Accept as Solution to help the other members find it more quickly. Thanks in advance!

 

Best Regards,

Community Support Team _ Caiyun

I found out that the issue of number decimal in line chart has been fixed.  But my table/matrix is still show 2 decimals only.  I've checked your setting which is no difference from mine.  

Wondering if I need to change any setting? 

 

ribisht17
Super User
Super User

@Wei2 

 

Please check Solved: Dynamically use different measure with different d... - Microsoft Power BI Community

 

Regards,

Ritesh

Mark my post as a solution if it helped you| Munde and Kudis (Ladies and Gentlemen) I like your Kudos!! !!
My YT Channel Dancing With Data !! Connect on Linkedin !!Power BI for Tableau Users 

Format returns Text type.  But I use VALUE in FORMAT,  data only show 2 decimals. 

but format return text type instead of numeric type. 

Here is my measure 

 

Value_new =
IF(CONTAINS('table1', 'table1'[column1],"A"),FORMAT(FIXED(SUM('table1[column2]),1,True),"#0,0"), FORMAT(FIXED(SUM('table1'[Column2]),3,1),"#0,000"))
 
I want to show data lable in my line chart.   

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.