cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper V
Helper V

How to to give $ in one row and % to the other row in the same table

Hi,

This is my dummy data. In some of the rows, I want to use the $sign with the number and other rows %sign with the number.

When I import this data into Power BI, % and $ symbol are not coming.

 

 

sbhan4_0-1600462906533.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Champion
Community Champion

Re: How to give $ in one row and % to the other row in the same table

Hello @sbhan4

What is the condition for your format,

If you need it formatted, you must convert it to a column of type string.

then create a measure

measurement: Switch (true(),

[Col1] á "Cond1", FORMAT(table[Col3], "Currency"),

[Col1] - "Cond2", FORMAT(table[Col3], "-%"),

[Col1] á "Cond3", FORMAT(table[Col3], "-"))


Hope it resolves your issue? Please consider accepting it as the solution to help the other members find it more quickly.


Appreciate your Kudos, Press the thumbs up button!!👍


Regards,
Pranit


View solution in original post

4 REPLIES 4
Highlighted
Community Champion
Community Champion

Re: How to give $ in one row and % to the other row in the same table

Hello @sbhan4

What is the condition for your format,

If you need it formatted, you must convert it to a column of type string.

then create a measure

measurement: Switch (true(),

[Col1] á "Cond1", FORMAT(table[Col3], "Currency"),

[Col1] - "Cond2", FORMAT(table[Col3], "-%"),

[Col1] á "Cond3", FORMAT(table[Col3], "-"))


Hope it resolves your issue? Please consider accepting it as the solution to help the other members find it more quickly.


Appreciate your Kudos, Press the thumbs up button!!👍


Regards,
Pranit


View solution in original post

Highlighted
Helper V
Helper V

Re: How to give $ in one row and % to the other row in the same table

@pranit828 Thanks for your help. Actually, As you see in the screenshot. If I import that dataset in table format.

One metric should be $ other one % and remaining just numbers.

Highlighted
Community Support
Community Support

Re: How to to give $ in one row and % to the other row in the same table

Hi @sbhan4 ,

 

You may enter into Query Editor, go to APPLIED STEPS, find the step named "Changed type" , delete this step.

 

Or you may go to File -> Options and settings -> Options ->CURRENT FILE ->Data Load, don't tick the option "Detect column types and headers for unstructured sources", restart the Power BI Desktop to take effect of this change.

Detect Type 2.png

 

 

Best Regards,

Amy 

 

Community Support Team _ Amy

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Highlighted
Helper V
Helper V

Re: How to give $ in one row and % to the other row in the same table

@pranit828 Thanks Pranit for your help. Well, I have provided a link to my dummy data. As you see in the screenshot, columns Goal, Actual, YTD Goal, YTD Actual - Ex Cost metrics should be $ and other in % and Number. Please share pbix if possible.

 

https://drive.google.com/file/d/13G6ugOhXQ3TlcjMea629H35c0dDv2rn1/view?usp=sharing

 

sbhan4_0-1601678557965.png

 

Helpful resources

Announcements
Get Ready for Power BI Dev Camp

Get Ready for Power BI Dev Camp

Mark your calendars and join us for our next Power BI Dev Camp!.

Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

Top Solution Authors
Top Kudoed Authors