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

Re: Sort with DAX Function FORMAT

Thanks But that doesn't allow me to format the text in refect these values in thousands, Actually i have sales values appearing in millions and these have to represent in thousand or amusing it like xyz= Format ([Measure1] ,"#,.0,K"), now format is converting this inot string and i can't sort that measure 'xyz' in table, though if i use the value function to convert this like value (Format ([Measure1] ,"#,.0,K")) then it works but there is another problem, now if i use any filter to filters the values let say based on Region then table doesn't show any data and error message says can't convert value xxxxxxK of type text to Number. Pls suggest! 

 

Thanks,

Amit

Highlighted
Super User III
Super User III

Re: Sort with DAX Function FORMAT


@Amit_Saxena wrote:

Thanks But that doesn't allow me to format the text in refect these values in thousands, Actually i have sales values appearing in millions and these have to represent in thousand or amusing it like xyz= Format ([Measure1] ,"#,.0,K"),


Yes it does. You can just type in your custom format string. Both measures have the same expression in the example below, I just used a custom format string on the second one.

 

2020-05 custom format string.png

Highlighted
Microsoft
Microsoft

Re: Sort with DAX Function FORMAT

Super! it works!! Thanks alot!!!

Helpful resources

Announcements
June 2020 Community Highlights

June 2020 Community Highlights

Featured community members, changes to the Community, and more! Read up on recent Power BI community news.

Using the Community

Using the Community

Need help with the Power BI Community? Our 'Using the Community' support articles are a great place to start.

Community Summit North America

Community Summit North America

Innovate, Collaborate, Grow. The top training and networking event across the globe for Microsoft Business Applications

Power Platform 2020 release wave 2 plan

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors