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
scott3387
Frequent Visitor

Problema con el formato de fecha americano al usar selectedvalue en medida solamente

Hola

Tengo una tabla generada con lo siguiente sólo para segmentaciones/filtros. La tabla se establece en formato dd/mm/aaaa

Fechas: CALENDARIO(HOY()+1, HOY()+28)

También tengo una medida que quiero usar para un título dinámico

Fecha de título - var selecteddate - SELECTEDVALUE(Dates[Date]) devuelve "Fecha: "& if(isblank(selecteddate), "All Dates", selecteddate)

Literalmente en todas partes de mi informe, las fechas son valores de estilo europeo dd/mm/aaaa, pero esta devuelve xml/dd/aaaa americana.


¿Alguna idea de por qué y cómo arreglar?


Gracias

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

Hola @scott3387 ,

Basado en sus fórmulas, creo que sólo desea mostrar la fecha seleccionada en un visual de tarjeta. Si es así, puede agregar una función FORMAT como la siguiente para mostrar normalmente.

Nota: La función de Formato puede convertir valores en texto. Así que cambio la condición de isblank(selecteddate) a selecteddate á "".

Title Date = 
VAR selecteddate =
    FORMAT(SELECTEDVALUE ( Dates[Date] ),"dd/mm/yyyy")
RETURN
    "Date: " & IF ( selecteddate = "", "All Dates", selecteddate )

2.PNG

Best Regards,
Xue Ding
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

2 REPLIES 2
v-xuding-msft
Community Support
Community Support

Hola @scott3387 ,

Basado en sus fórmulas, creo que sólo desea mostrar la fecha seleccionada en un visual de tarjeta. Si es así, puede agregar una función FORMAT como la siguiente para mostrar normalmente.

Nota: La función de Formato puede convertir valores en texto. Así que cambio la condición de isblank(selecteddate) a selecteddate á "".

Title Date = 
VAR selecteddate =
    FORMAT(SELECTEDVALUE ( Dates[Date] ),"dd/mm/yyyy")
RETURN
    "Date: " & IF ( selecteddate = "", "All Dates", selecteddate )

2.PNG

Best Regards,
Xue Ding
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
vanessafvg
Super User
Super User

probablemente los cambiaría en la consulta de energía ¿está importando los datos? así que tome esa columna e intercambie el mes y los días en la consulta de energía.





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




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.