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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
bvsaicharitha
Helper I
Helper I

Error in visulaization using dateadd measure

Hi, I have created a graph using a measure and data add function. When I closed the dashbaord and opened it again, the visulaization is not displaying.

 

This is the measure I used.

 

A_Prev Year = CALCULATE([A_Total sales],DATEADD('calendar'[Date],-1,YEAR))Dataadd.PNG

1 ACCEPTED SOLUTION

Hi @bvsaicharitha

 

You may try to change the cross filter direction to 'single'.

 

1.png

Regards,

Cherie

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

View solution in original post

4 REPLIES 4
v-cherch-msft
Microsoft Employee
Microsoft Employee

Hi @bvsaicharitha

 

Based on my test, I cannot reproduce the same issue. It seems you may check the relationships between the calendar table and data table. If it is not your case, please share your sample file. You can upload it to OneDrive or Dropbox and post the link here or send me via private message.

 

Regards,

Cherie

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

Hi

 

Here is the link

 

https://www.dropbox.com/s/gl43sn5r2ibe2yd/Dashboard.pbix?dl=0

 

I have tried using other data also, But still facing the issue with the date add measure in the visualization.

 

Please check and let me know

Hi @bvsaicharitha

 

You may try to change the cross filter direction to 'single'.

 

1.png

Regards,

Cherie

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

It worked now. Thank yopu very much

 

Also, If I want to calculate past 12 months sum from the lastdate of my date month

 

 CALCULATE([A_TSA],DATEADD('Calendar'[Date],-12,MONTH). This is not giving me correct sales.

 

Suppose i want to sum from sep-18 to sep 17 and sep- 17 to sep 16 so on, But the measure is calculating from sep- 18 to jan-18

 

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.