Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Text column number value need to change Thousand Separetor

Hi all,

 

1)   i have Table with one column Q1 score/status in this column as a text format (Mixing of number and text) i want to Thousand separetor in purticular number cells only is this possible?  kindly see the below image

 

Untitled1.png

 

2. i have a column name as a category in this column unique value only background color change (unique value whole row background color change) is this possible?  

 

Untitled.png

 

Thank you in advance for your replies!

 

 

 

1 ACCEPTED SOLUTION
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

1) You can create this calculated column:

Q1 2020 Score / Status Result = 
VAR tab =
    SUMMARIZE (
        FILTER (
            ALL ( 'Table' ),
            CONTAINSSTRING ( 'Table'[Q1 2020 Score / Status], "." )
        ),
        'Table'[Category],
        'Table'[Description],
        'Table'[Team],
        'Table'[Q1 2020 Score / Status],
        "RE", FORMAT ( CONVERT ( 'Table'[Q1 2020 Score / Status], DOUBLE ), "#,###.###" )
    )
RETURN
    IF (
        CONTAINSSTRING ( 'Table'[Q1 2020 Score / Status], "." ),
        MAXX (
            FILTER (
                tab,
                [Category] = EARLIER ( 'Table'[Category] )
                    && [Description] = EARLIER ( 'Table'[Description] )
                    && [Team] = EARLIER ( 'Table'[Team] )
            ),
            [RE]
        ),
        'Table'[Q1 2020 Score / Status]
    )

 

2) You can create this measure, use it as the conditional format background rule:

Color = 
IF (
    CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Category] ) ) = 1,
    "Red"
)

background.pngb2.png

 

The final result will be like this:

result.png

 

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Yingjie Li

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

View solution in original post

3 REPLIES 3
v-yingjl
Community Support
Community Support

Hi @Anonymous ,

1) You can create this calculated column:

Q1 2020 Score / Status Result = 
VAR tab =
    SUMMARIZE (
        FILTER (
            ALL ( 'Table' ),
            CONTAINSSTRING ( 'Table'[Q1 2020 Score / Status], "." )
        ),
        'Table'[Category],
        'Table'[Description],
        'Table'[Team],
        'Table'[Q1 2020 Score / Status],
        "RE", FORMAT ( CONVERT ( 'Table'[Q1 2020 Score / Status], DOUBLE ), "#,###.###" )
    )
RETURN
    IF (
        CONTAINSSTRING ( 'Table'[Q1 2020 Score / Status], "." ),
        MAXX (
            FILTER (
                tab,
                [Category] = EARLIER ( 'Table'[Category] )
                    && [Description] = EARLIER ( 'Table'[Description] )
                    && [Team] = EARLIER ( 'Table'[Team] )
            ),
            [RE]
        ),
        'Table'[Q1 2020 Score / Status]
    )

 

2) You can create this measure, use it as the conditional format background rule:

Color = 
IF (
    CALCULATE ( COUNTROWS ( 'Table' ), ALLEXCEPT ( 'Table', 'Table'[Category] ) ) = 1,
    "Red"
)

background.pngb2.png

 

The final result will be like this:

result.png

 

Attached a sample file in the below, hopes to help you.

 

Best Regards,
Yingjie Li

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

amitchandak
Super User
Super User

@Anonymous , first check ISNUMBER , and the use format

 

https://docs.microsoft.com/en-us/dax/isnumber-function-dax

https://docs.microsoft.com/en-us/dax/format-function-dax

 

a new column = if(ISNUMBER([column]), format([column],"#,##0",[column])

 

I have not tested it

Anonymous
Not applicable

@amitchandak 

 

it's not working  

 

Column = if(
ISNUMBER([Q1 2020 Score / Status]),format([Q1 2020 Score / Status],"#,##0"),
"Not a number"
)

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.