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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
danilren
New Member

Como poner 2 formatos de numero diferente en una misma columna

Buenas,
Estoy trabajando con esta matriz la cual necesito que los formatos de los valores sean diferentes, hay alguna forma de que la primera línea que es (cantidad) los valores queden en numero decimal y la segunda que es (total en dólares) quede en formato de moneda, esto se puede lograr? Cabe resaltar que la matriz no hace referencia a ninguna medida, son valores que se tomaron directamente de un excel y no se han transformado en medidas.
Muchas gracias al que me pueda indicar como solucionar este incoveniente que no me deja avanzar.

 

416989550_24562161726762215_4446041497100204751_n.jpg

@OwenAuger 

1 ACCEPTED SOLUTION
v-heq-msft
Community Support
Community Support

Hi @danilren ,

Here some steps that I want to share, you can check them if they suitable for your requirement.

Here is my test data:

vheqmsft_0-1706171202429.png

Create a measure

Measure = IF(
    SELECTEDVALUE(
        'Table'[Tesa Comex])="Cantidad", 
        FORMAT(
            CALCULATE(
                SUM('Table'[Column2])
             ),
            "Fixed"
        ),
                FORMAT(
                    CALCULATE(
                        SUM('Table'[Column2])
                    ),
                "Currency"
                )
)

Final output

vheqmsft_1-1706171296279.png

 

Best regards

Albert He

 

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-heq-msft
Community Support
Community Support

Hi @danilren ,

Here some steps that I want to share, you can check them if they suitable for your requirement.

Here is my test data:

vheqmsft_0-1706171202429.png

Create a measure

Measure = IF(
    SELECTEDVALUE(
        'Table'[Tesa Comex])="Cantidad", 
        FORMAT(
            CALCULATE(
                SUM('Table'[Column2])
             ),
            "Fixed"
        ),
                FORMAT(
                    CALCULATE(
                        SUM('Table'[Column2])
                    ),
                "Currency"
                )
)

Final output

vheqmsft_1-1706171296279.png

 

Best regards

Albert He

 

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

OwenAuger
Super User
Super User

Hola, @danilren 

 

You will have to create an explicit measure, then create a dynamic format string for that measure.

See this article:

https://learn.microsoft.com/en-us/power-bi/create-reports/desktop-dynamic-format-strings

 

Regards


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
Twitter
LinkedIn
danilren
New Member

@Fowmy 

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.