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
gauri
Helper III
Helper III

how to club 360 + days aging balance into 360 day bucket

How can this be solved:

I have a measure which is calculating a lookback of 12 months from the date selected in the slicer, following is the measure :

Aging Amount =
var current_date = MAX('Date'[Date])
var previous_date = DATE(YEAR(current_date),MONTH(current_date)-12,1)
var result =
CALCULATE(SUM('pcc_view_ar_aging (2)'[amount]),
FILTER('pcc_view_ar_aging (2)','pcc_view_ar_aging (2)'[effective_date] >= previous_date && 'pcc_view_ar_aging (2)'[effective_date] <=current_date
)
)
return
result
 
my date table and pcc_view_ar_aging are two disconnected tables.
Aging 1.PNG

 

for the above image i have selected 1/1/2020 in the date slicer which is giving a lookback of 12 months i.e 360 days, but i have my aging balances past 12 months such as dec 2018, nov 2018 and so on till jan 2015, how can i modify the dax in way where all the balances from dec 2018 get clubed into jan 2019 column value.
 
Thanks

 

 

2 REPLIES 2
gauri
Helper III
Helper III

Can anyone help me solve the above issue

Hi , @gauri 

Sample data and expected output would help tremendously.

Could you please share your PBIX/some sample data and expected result to me if you don't have any Confidential Information?

Best Regards,
Community Support Team _ Eason

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.