The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi everyone,
I am trying to add "pp" (percentage points) to the end of the number in my variance measure. However, I only want to change "pp" for some of my visuals, not the measure format in the back end. At the same time, I don’t want Power BI to convert it to text.
I have a measure that returns a Market share variance value, e.g., 1.56%. I modified it by appending text to display 1.56 pp, so I would like to replace the % symbol with "pp" while keeping the measure numeric.
Measure Format e.g.
i want see MS Var -1.16pp instead -1.16%
Does anyone have a solution for this?
Thanks.
Hi @sujana_m ,
we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.
If our response addressed your query, please mark it as Accept Answer and click Yes if you found it helpful.
If you have any further questions, feel free to reach out.
Thank you for being a part of the Microsoft Fabric Community Forum!
Hi sujana_m ,
we haven't heard back from you regarding our last response and wanted to check if your issue has been resolved.
If our response addressed your query, please mark it as Accept Answer and click Yes if you found it helpful.
If the issue still persist,find the below answer:
In Power BI, adding "pp" makes the measure text, so it won’t be treated as a number. The best approach is to keep your original numeric measure for calculations and create a separate display measure like FORMAT([CCI MS] - [CCI MS PY], "0.00") & " pp" to show "pp" in visuals where needed.
Thank you for being a part of the Microsoft Fabric Community Forum!
Hi @sujana_m ,
May I ask if you have gotten this issue resolved?
If it is solved, please share your solution and accept it as solution, it will be helpful for other members of the community who have similar problems as yours to solve it faster.
Thank you.
Hi @sujana_m - Since Power BI does not allow appending text to numbers while keeping them numeric, you can create a separate measure for visuals where you need "pp"
Hope this helps.
Proud to be a Super User! | |
Create a new measure that formats the number as a string and appends "pp" to it. This will convert the measure to text for display purposes.
Formatted MS Var =
VAR MSVar = [CCI MS] - [CCI MS PY]
RETURN
FORMAT(MSVar, "0.00%") & " pp"
Proud to be a Super User! |
|
Hi Gautam, thanks for the solution, but I want to see only PP after the number, not the % symbol. e.g -1.99pp
use this then Formatted MS Var =
VAR MSVar = [CCI MS] - [CCI MS PY]
RETURN
FORMAT(MSVar, "0.00") & " pp"
Proud to be a Super User! |
|
I also tried this approach, but it is not working as I expected.
with out % numbers.