Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hi all,
Hi all,
I am trying to sum a column(bad debt reserve) of the second largest date ( previous month). But I am not sure how to correctly filter out the date. I tried creating a sepearate date column that would contain the original date -1( smaller by one month), however, dateadd function did not work as it only returned values for some months and other were blank.
LastMonthBD = CALCULATE(SUM('As of 6 30 2019'[Bad Debt Reserve (USD)]), FILTER(ALL('As of 6 30 2019'[As of Date] , 'As of 6 30 2019'[As of Date] = MAX(Dateadd('As of 6 30 2019'[As of Date],-1,MONTH)))))
Any help is appreciated!
Again... You should learn about the proper design of models first. If you don't, well, you will not know how to do your calculations in the simplest way possible and will be scratching your head constantly, which will frustrate you more and more each day.
Here's something to get you started with time intelligence in Power BI:
https://www.youtube.com/watch?v=kmZlNMA0_SM
Best
Darek
Check out the July 2025 Power BI update to learn about new features.
User | Count |
---|---|
25 | |
10 | |
7 | |
6 | |
6 |
User | Count |
---|---|
30 | |
11 | |
11 | |
10 | |
6 |