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
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
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.