cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mithiladas02
Frequent Visitor

How to get zero after concatenate Function

Hi,

 

I am using this 

Test=cancatenate(format(divide([a],[b]), "#.#%" & Unichar(10)), (" (" & if [a]=0, "0")& "/" & if ([b]=0, "0",[b])& ")"))

and my result comes like in this picture. My question is how can i put zero after decimal place when result comes as a number? image_67154433.JPG

 

 

1 ACCEPTED SOLUTION
Greg_Deckler
Super User
Super User

@mithiladas02 Try "#.0%" ?


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop!
Microsoft Hates Greg's Quick Measures
Check out my latest book!

View solution in original post

3 REPLIES 3
parry2k
Super User
Super User

@mithiladas02 why you are even converting it to text or using format function, why not change the format with 2 decimal places, selected your measure and then format it here:

 

parry2k_0-1632596897243.png

 

Follow us on LinkedIn

 

Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

 






Did I answer your question? Mark my post as a solution.

Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.





Greg_Deckler
Super User
Super User

@mithiladas02 Try "#.0%" ?


@ me in replies or I'll lose your thread!!!
Check out my External Tool for Power BI Desktop!
Microsoft Hates Greg's Quick Measures
Check out my latest book!

View solution in original post

@Greg_Deckler thanks. Your solution works .:)

Helpful resources

Announcements
PBI_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!