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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Anonymous
Not applicable

Showing most recent month data in Edit Query mode

I have a dataset that looks as follows:

 

Transaction Date         EMP_ID

1/31/2020                       1

1/31/2020                       2

2/29/2020                       1

3/31/2020                       1

 

 

So transaction date will have the most recent date which is the last day of the previous month. My data refreshes on the 4th of every month.

 

So for this month that is April 4th,2020 -> I have data upto 3/31/2020. Now I would like to filter my power bi backend to show me only 3/31/2020 data for now.... and similarly next month that should automatically filter to have only 4/30/2020 data...

 

How can i acheive this? Thank you!      

1 ACCEPTED SOLUTION

Hi @Anonymous ,

 

If i understand you correctly, you might use Date Fiters feature in Query Editor.

4.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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

View solution in original post

3 REPLIES 3
amitchandak
Super User
Super User

The information you have provided is not making the problem clear to me. Can you please explain with an example.

Appreciate your Kudos.

Anonymous
Not applicable

Hey @amitchandak 

 

As you can see from my table structure, I have multiple transaction dates (These dates have only the last of the month for each month, so say it has from 1/31/2020-3/31/2020)

 

The records would look as the one shown in my table structure. The mose recent date would be the last date of the previous month (We are in April now, so the last date available for Transaction Date column is data upto 3/31/2020. Next month which is May, I would have data upto 4/30/2020)

 

So transaction date column looks like:

 

Transaction Date     Emp_ID

1/31/2020                  1

1/31/2020                  2

2/29/2020                  1

3/31/2020                  1

4/30/2020                  1  *This would be present in May and so on*

 

However, once I load the data to Power BI, I would like transaction date to have only the most recent date records, so in this case I would like power bi to show me all records belonging only to 3/31/2020. *Next month it should automatically show me only those records for 4/30/2020*

 

Hence, I would like to know a way of filtering this date to show only 3/31/2020  records for this month in the back end. Next month, this would automatically filter just to have 4/30/2020 instead of having all the transaction date records...

 

Hi @Anonymous ,

 

If i understand you correctly, you might use Date Fiters feature in Query Editor.

4.PNG

 

Best Regards,

Jay

 

Community Support Team _ Jay Wang

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

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

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.