cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
thomaslecurieux Frequent Visitor
Frequent Visitor

Learning PREVIOUSMONTH

Hi!

 

I'm trying to be on top of the basics of DAX. One of my first challenges is to understand the PREVIOUSMONTH function.

When I read this page, it looked really easy. 

So I opened up Power BI and started to play around.

 

  1. I created one date table 
  2. Then I created one "Total Sales" Column 
  3. And then I added one column to see "Total Sales Previous Month" 

 

My problem is that my "Total Sales Previous Month" is not showing anything.

I've read many posts about people having the same issue, but I've never found the root cause of why it happenned in my specific situation.

Any help is welcome, thank you !

 

Capture2.JPGCapture.JPG

Capture6.JPG

 

Capture3.JPGCapture4.JPG

 

 

Capture5.JPG

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

Re: Learning PREVIOUSMONTH

Hi @thomaslecurieux

 

Try your Total Sales PM formula as a MEASURE instead of a calculated column and check the results

Try my new Power BI game Cross the River

View solution in original post

1 REPLY 1
Super User III
Super User III

Re: Learning PREVIOUSMONTH

Hi @thomaslecurieux

 

Try your Total Sales PM formula as a MEASURE instead of a calculated column and check the results

Try my new Power BI game Cross the River

View solution in original post

Helpful resources

Announcements
Exclusive LIVE Community Event #3 – Ask Arun Anything

Exclusive LIVE Community Event #3 – Ask Arun Anything

Join us in the third Triple A event!

Meet the 2020 Season 1 Power BI Super Users!

Meet the 2020 Season 1 Power BI Super Users!

It’s the start of a new Super User season! Learn all about the new Super Users and brand-new tiered recognition system.

Super User Challenge: Can You Solve These?

Super User Challenge: Can You Solve These?

We're celebrating the start of the New Super User season with our first ever Super User 'Can You Solve These?' challenge.

Power BI Desktop Update - February 2020

Power BI Desktop Update - February 2020

We are super excited for our update this month, as we are releasing two of our top community requests!

Power Platform Online Conference

Power Platform Online Conference

Join us for the first ever Power Platform Online Conference!

Top Solution Authors