cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
dcrios Frequent Visitor
Frequent Visitor

Previous Month with problems

Hello everybody,

 

I faced many times people trying to bring values from the previous month. But in my case, I was trying to bring de last date from previous month, like the formula in this link

https://community.powerbi.com/t5/Desktop/Last-date-Previous-Month/m-p/304830

But when I try this formula to get this value, didn't work as well when I put the measure in a Column chart. It must be appear the value from the date 30-11-2017 (9.057.180.489.18). Can anyone please help me with this?

 

 

power bi.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
dcrios Frequent Visitor
Frequent Visitor

Re: Previous Month with problems

Oh ty @Ashish_Mathur I already did what I need. I created a filter to the current and the previous month and putted on the sheet. So in the measure, I created a DAX calculation with calculate(sum(measure), lastdate(date)) and it worked fine for me. But thanks for replying this question. Have a great day

View solution in original post

9 REPLIES 9
rocky09 Senior Member
Senior Member

Re: Previous Month with problems

did you have any page leve/report level filters applied?

dcrios Frequent Visitor
Frequent Visitor

Re: Previous Month with problems

No, it doesn't. I just created in a new Dashboard to test this formula

rocky09 Senior Member
Senior Member

Re: Previous Month with problems

can you post sample data

dcrios Frequent Visitor
Frequent Visitor

Re: Previous Month with problems

vlr_liquidoData Foto
905723602412/1/2017 
905722209511/29/2017
905718048911/30/2017
rocky09 Senior Member
Senior Member

Re: Previous Month with problems

Capture.PNG

 

 

is this what you are trying?

dcrios Frequent Visitor
Frequent Visitor

Re: Previous Month with problems

No. I tried to explain that I want to show the last date from previous month, like in the formula I posted in the first post. So if I got 01-12-2017 as my current date in the database and all dates from november, I want to show the value of 30 nov 2017 because Its the last date from previous month. 

Super User
Super User

Re: Previous Month with problems

Hi,

 

So if the last date in your Data Table is March 10, 2018, then do you want to see a single column in the column chart with the value from Feb 28, 2018?  If the answer is yes, then what result would you expect if in your Data Table, there is no data at all for Feb 28, 2018?


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
dcrios Frequent Visitor
Frequent Visitor

Re: Previous Month with problems

Oh ty @Ashish_Mathur I already did what I need. I created a filter to the current and the previous month and putted on the sheet. So in the measure, I created a DAX calculation with calculate(sum(measure), lastdate(date)) and it worked fine for me. But thanks for replying this question. Have a great day

View solution in original post

Community Support Team
Community Support Team

Re: Previous Month with problems

@dcrios,

 

Glad to hear that. You may help accept solution. Your contribution is highly appreciated.

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

Helpful resources

Announcements
Ask Amir Anything

Exclusive LIVE Community Event No. 2 – Ask Amir Anything

Next in our Triple A series: Ask Amir Netz questions about the latest updates, features and future.

October 2019 Community Highlights

October 2019 Community Highlights

October was a busy month in the community. Read the recap article to learn about some of the events and content.

New Solution Badges

New Solution Badges

Two waves of brand new solution badges are coming! Read the article for more information on our new community badges.

Analytics in Azure virtual event

Analytics in Azure virtual event

Experience a limitless analytics service built to ingest, prep, manage, and serve data for immediate use in Power BI.

Users Online
Currently online: 116 members 1,492 guests
Please welcome our newest community members: