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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
alexandrestaffa
New Member

Problem to Use DATEADD with a Limited Filter

i am trying to calculate return on investment based on a positon that the initial balance is the last balance from the previous month.
I created a measure to bring the last month balance, but when a filter the year 2022, january is left blank!! Thus, when I use a graph by year, the 2022, 2021 are wrong because january is never there!
any form to solve it?

 

alexandrestaffa_0-1655138116542.png

 

2 ACCEPTED SOLUTIONS
v-kkf-msft
Community Support
Community Support

Hi @alexandrestaffa ,

 

Based on my testing, if the row fields of your matrix and the fields in the slicer are from the Calendar table, then the January measure is not blank when you select a specific year. So in your report they come from the same table 'Aplicações Financeiras'?

 

vkkfmsft_0-1655345824392.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
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

Yes, the date  come from Aplicacoes Financeiras, I dont use a Calendar table in this case, I will try to do with a calendar table to check if solves.

View solution in original post

3 REPLIES 3
v-kkf-msft
Community Support
Community Support

Hi @alexandrestaffa ,

 

Based on my testing, if the row fields of your matrix and the fields in the slicer are from the Calendar table, then the January measure is not blank when you select a specific year. So in your report they come from the same table 'Aplicações Financeiras'?

 

vkkfmsft_0-1655345824392.png

 

If the problem is still not resolved, please provide detailed error information or the expected result you expect. Let me know immediately, looking forward to your reply.
Best Regards,
Winniz
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

 

 

Worked with a Calendar Table!

Yes, the date  come from Aplicacoes Financeiras, I dont use a Calendar table in this case, I will try to do with a calendar table to check if solves.

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.

Top Solution Authors