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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
raul_pavel
Regular Visitor

DAX basics - Task: Create a measure formula

Hi,

 

i'm using the Contoso Dataset to try different DAX commands and I'm stuck at the first example.

In this tutorial - https://docs.microsoft.com/en-us/power-bi/transform-model/desktop-quickstart-learn-dax-basics, I follow all 10 steps but the Created Column `Previous Quarter sales` is always blank.

 

 

What am I missing?

 

thanks,

raulpowerbi.jpg

4 REPLIES 4
OwenAuger
Super User
Super User

@raul_pavel you should select a date range that has a quarter immediately preceding it in the dataset.

For example, try selecting 2018.

 

In your screenshot, with Year unfiltered and Quarter 1 selected, PREVIOUSQUARTER shifts the dates to the quarter immediately preceding the earliest date in the filter context, i.e. Q4 of 2004, which is a date range that doesn't exist in the dataset.


Owen Auger
Did I answer your question? Mark my post as a solution!
Blog
LinkedIn

Hello Owen,

 

Thanks for the reply.

It seems that the only years with data for Previous Quartes Sales are 2012-2014. All other years returns a blank column. It would be weird though to left such a thing unmentioned in a tutorial.

 

 

power bi2.jpg

raul_pavel
Regular Visitor

Hello Jihwan_Kim,

 

Thanks for yor reply.

Even with all the years selected, the column remains blank.

Jihwan_Kim
Super User
Super User

hI, @raul_pavel 

Please correct me if I wrongly understood your question.

I am not sure about how you wrote your measure, but when I see your screenshot, it looks like the year is not selected in the slicer.

 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster, and give a big thumbs up.

 


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.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.