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
Ytung
New Member

Cómo presentar datos basados en un calendario especial

Normalmente enero es enero 1 -31, febrero es 2-28......

Mi empresa tiene un calendario PROPIO, en 2020,

Enero : 2019 Dic 29-2020 En 25 (todo 4 semanas)

Febrero : 26 de ene - 29 de febrero (todo 5 semanas)

Marzo : Mar 1 - Mar 21 (todo 4 semanas).....

¿Qué debo hacer cuando elijo presentar datos por año o mes (usando el propio calendario de mi empresa)? Gracias.

4 REPLIES 4
v-lili6-msft
Community Support
Community Support

hola @Ytung

Podría personalizar una tabla de fechas de calendario por dax para crear una nueva tabla, pero para su descripción, sólo hay 4 semanas en un mes, ahora hay 4 * 7 * 12 336 días en un año? ¿Cómo definir los días restantes?

saludos

Lin

Community Support Team _ Lin
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

@Ytung, lo que está tratando de lograr aquí. YTD, MTD, etc.

El enfoque será hacer que funcione usando rangos al igual que lo que se ha hecho para la semana en este blog -https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...

@Ytung Lee este post para obtener tu respuesta rápidamente.

https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

ryan_mayu
Super User
Super User

@Ytung

Pruebe la siguiente codificación para crear la tabla datetime. Sólo contiene la fecha de 2019/12/29 a 2020/3/21 porque solo proporciona la lógica para ese período. Puede modificar la codificación.

Dates = 
ADDCOLUMNS (
    CALENDAR (DATE(2019,12,29),DATE(2020,3,21)),
     "Year", YEAR ( [Date] ),
     "Monthnum", MONTH ( [Date]),
        "OwnCanlendarMonth", SWITCH(true(),[Date]<=date(2020,1,25),1,[Date]<=date(2020,2,29),2,[Date]<=date(2020,3,21),3)
    )





Did I answer your question? Mark my post as a solution!

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.