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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
SivaMani
Resident Rockstar
Resident Rockstar

DAX: Calculate value 6 months back

Hi All,

 

I'm trying to calculate the amount that 6 months back. I used below measure,

 

CALCULATE(SUM(amt), PARALLELPERIOD(Date, -6, MONTH)

 

But it returns blank. However, It shows the correct date if I keep only PARALLELPERIOD(Date, -6, MONTH).

 

What's wrong here?

 

 

1 ACCEPTED SOLUTION

Thanks for the response,@v-danhe-msft.

 

Seems the time intelligence DAX functions aren't working as expected. I have used FILTER to explicitly say the filter value and it works. 

 

 

View solution in original post

3 REPLIES 3
v-danhe-msft
Employee
Employee

Hi @SivaMani,

Based on my test, the first formula you have offered could work on my side:

1.PNG

And if I keep only PARALLELPERIOD('Table1'[Data], -6, MONTH), it will show error.

1.PNG

 Could you please offer your sample data to have a test if possible? 

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@v-danhe-msft,

 

Unfortunately, I can't share sample data. It is my client data.

 

The first measure works for me with SQL DW connection. 

 

I'm wondering what's wrong with BigQuery.

Thanks for the response,@v-danhe-msft.

 

Seems the time intelligence DAX functions aren't working as expected. I have used FILTER to explicitly say the filter value and it works. 

 

 

Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.