March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
Buenas tardes.
Soy nuevo en esta comunidad y agradecería me constestasen a al siguiente pregunta:
¿Porqué cuando aplico la siguiente función, me devuelve el valor 1?
Estoy intentado averiguar el nombre del mes anterios a una fecha:
Solved! Go to Solution.
to return the name of the month using the FORMAT function, you need the value to be like a date. and in order to get the name of the previous month,
you need to return the date today back, and this can be done using the EOMONTH function
If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.
Thank Ahmedx. Your solution is OK.
But, I wonder why the FORMAT function doesn't work only with the TODAY() function and I have to add the EOMONTH function to it.
Do you know the reason for this behavior?
to return the name of the month using the FORMAT function, you need the value to be like a date. and in order to get the name of the previous month,
you need to return the date today back, and this can be done using the EOMONTH function
yo need wirte like this
Nombre_Mes = UPPER(FORMAT(DATE(2023,MONTH('Medidas FIXING'[Hoy]= TODAY()),1), "mmmm"))
Hello Ahmedx.
Thanks by your answer, but in my computer, the result of your version of this measure is "DECEMBER", and should be "FEBRUARY", taking in accoubt thas the mesure of Hoy is : Hoy = TODAY()
Also the same problem for the Mesure:
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
133 | |
91 | |
88 | |
64 | |
58 |
User | Count |
---|---|
201 | |
137 | |
107 | |
73 | |
68 |