The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
data view
visual view
Above is the table i have. Amount column is storing values as decimals which includes percentage values also (see SubCategory column). but i want to show '%' symbol beside the percentage value in Amount column wherever the SubCategory column value contains '%' in it. Its a Matrix visual.
Solved! Go to Solution.
Hi @naveenpadala
if I understood you correctly you can surround your measure with "If"
Like :
Pbix attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hi @naveenpadala
Please update the formula to :
The updated PBIX attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Hi @naveenpadala
if I understood you correctly you can surround your measure with "If"
Like :
Pbix attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
I attached a pbix to the first response, you can download it and check my steps to compare with yours .
Also you you can attach some sample data / link to dummy pbix and i will look at why it didn't work.
Hi @naveenpadala
Please update the formula to :
The updated PBIX attached
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
Glad to help ☺️
hi,
This method did not work. '%' is not concatenated to the 'Amount' values.
To display the '%' symbol beside the percentage value in the "Amount" column whenever the "SubCategory" column contains '%' in it in a Matrix visual, you can use the Power BI DAX (Data Analysis Expressions) language to create a calculated column or measure. Here's a step-by-step guide to achieving this:
Open your Power BI file and go to the "Data" view.
Create a new calculated column in your data model. To do this, select the "Model" view, find your table, and then right-click on the table. Choose "New Column."
Use a DAX formula to create the calculated column. You can use the following formula:
Amount with Percentage = IF(ISNUMBER(SEARCH("%", YourTable[SubCategory])), YourTable[Amount] & "%", YourTable[Amount])
Replace "YourTable" with the name of your table, and "SubCategory" and "Amount" with the actual column names in your table.
The formula checks if the "SubCategory" column contains the '%' symbol. If it does, it appends '%' to the "Amount" value; otherwise, it leaves the "Amount" as it is.
Once you've created the calculated column, save your changes and return to the "Visual" view.
In the Matrix visual, use the new "Amount with Percentage" column in place of the original "Amount" column. You can drag and drop it into the Values section of the Matrix visual.
Now, your Matrix visual should display the '%' symbol beside the percentage value in the "Amount" column wherever the "SubCategory" column contains '%' in it.
If this post helps, then please consider Accepting it as the solution to help the other members find it more quickly.
In case there is still a problem, please feel free and explain your issue in detail, It will be my pleasure to assist you in any way I can.
hi,
This is the error i face when i try your method.
User | Count |
---|---|
58 | |
54 | |
53 | |
49 | |
30 |
User | Count |
---|---|
177 | |
88 | |
70 | |
48 | |
48 |