Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Let assume I have the following table
And I want to get only the last month value for each relevant customer. It should be dynamic relevant to the date I check the power bi visual. for example, if check the report today (11/16/2020) value should be the last month (10/31/2019) value only. Not the sum of all value only value corresponding to last month. Thanks in advance
Though it is not in the above table, Let assume all values up to the last month are there and how can I get last month's value from today.
@sekinod , Last date of last month
closingbalancemonth(Sum('Table'[Value]), dateadd(Date[Date],-1,month))
or
measure =
CALCULATE(sum(''Table''[total hours value]),previousmonth('Date'[Date]) , filter('Date','Date'[Date] =eomonth('Date'[Date],-1) )
complete last month
last MTD (complete) Sales = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(ENDOFMONTH(dateadd('Date'[Date],-1,MONTH))))
previous month value = CALCULATE(sum(''Table''[total hours value]),previousmonth('Date'[Date]))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
9 | |
8 | |
7 | |
6 |
User | Count |
---|---|
14 | |
13 | |
11 | |
9 | |
8 |