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

Format for QoQ

Hi,

 

i wrote a Expression as per below , in below expression i want to add "Pts" at end of expression .

and if final output value is in Negative sign it should show it in Brackets.

 

Var QoQ_Per = DIVIDE(CALCULATE([Var Cur_Val_Per] - [Pre_Val_Per]),[Pre_Val_Per])
 
example : my output value is coming as -0.01
 
for that i want to add like below  (0.01 pts) as it is in negative sign it should show it in brackets.
if its in postive sign then it should show value as it is from expression . example: 0.03 means it should show 0.03pts
 
dunnalahk123_0-1662390459160.png

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@dunnalahk123 , of you want to show negative in parenthesis then you can follow

https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=b0a43781-...

 

but if you want to add pts then you have use format and add pts in text and it will become text

https://www.youtube.com/watch?v=zLG4fAHgkK4

 



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@dunnalahk123 , of you want to show negative in parenthesis then you can follow

https://www.pbiusergroup.com/communities/community-home/digestviewer/viewthread?MessageKey=b0a43781-...

 

but if you want to add pts then you have use format and add pts in text and it will become text

https://www.youtube.com/watch?v=zLG4fAHgkK4

 



!! Microsoft Fabric !!
Microsoft Power BI Learning Resources, 2023 !!
Learn Power BI - Full Course with Dec-2022, with Window, Index, Offset, 100+ Topics !!
Did I answer your question? Mark my post as a solution! Appreciate your Kudos !! Proud to be a Super User! !!

Hi,

 

Super , thank you so much it works. exactly what i need.

 

 

Helpful resources

Announcements
May 2023 update

Power BI May 2023 Update

Find out more about the May 2023 update.

Submit your Data Story

Data Stories Gallery

Share your Data Story with the Community in the Data Stories Gallery.

Top Solution Authors