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
Anonymous
Not applicable

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
Zubair_Muhammad
Community Champion
Community Champion

Hi @Anonymous

 

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


Regards
Zubair

Please try my custom visuals

View solution in original post

1 REPLY 1
Zubair_Muhammad
Community Champion
Community Champion

Hi @Anonymous

 

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


Regards
Zubair

Please try my custom visuals

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.