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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Syndicate_Admin
Administrator
Administrator

Sale Previous month. It does not generate some fields.

Hello everyone.

I am trying to visualize data from the previous month with DAX, using the following formula:

Ventas M-1 = CALCULATE( [Ventas$], PREVIOUSMONTH((Calendario[Fecha])))

Additionally I would like to do a check with this other method

Ventas M-1 TD = CALCULATE([Ventas$], DATEADD(Calendario[Fecha], -1,MONTH))

While the result is generated for some of the product categories I have, but for others (Food, and Bazaar) it leaves me blank the result.

I am grateful for your help in understanding why this is happening and how it can be corrected, as the general report does not tell me this information that is important.

rokyv_0-1658349281931.png

Thank you.

1 REPLY 1
parry2k
Super User
Super User

@Syndicate_Admin I did a lot of videos on time intelligence DAX function, here is the link to the playlist  Make your Time Intelligence KPIs SMART - Power BI - YouTube

 

for your specific question, check this video in the playlist: How PREVIOUS/NEXT (DAY/MONTH/QTR/YEAR) Time Intelligence functions are different from DATEADD-Part 4...

 

 

Follow us on LinkedIn and YouTube.gif to our YouTube channel

I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make effort to give Kudos to whoever helped to solve your problem. It is a token of appreciation!

 

Visit us at https://perytus.com, your one-stop shop for Power BI-related projects/training/consultancy.

 



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.

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors