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
Amardeep100115
Post Prodigy
Post Prodigy

Filter by first file of month

Hi

 

please guide

i have attached BI file in which i shared data in that there 4-5 data file from each month. 

 

i wish to be filter first file of that month to be filtered in query editor, also please note i have tried grouping for this as well

 

you may also refer my same query on community Click Here  

 

 

Captusre.JPG

 

Excel Data 

AB
1 ACCEPTED SOLUTION

No Worries Super User!

 

Got my answer by using grouping again 

 but Thanks Again

AB

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

CALCULATE(
    FIRSTDATE(data[File Date]),
    ALLEXCEPT('data',data[Month])
)

Thanks
But I wish to be have in query editor i wish to have table like as shown in the shared excel file
AB
Anonymous
Not applicable

Please insert the following code in the last position of power query:

 

= Table.AddColumn(#"Changed Type", "firstDate", each Table.SelectRows(#"Changed Type", 
(n) => n[Month]=_[Month] and n[Year]=_[Year]
){0}[File Date])

 

No Worries Super User!

 

Got my answer by using grouping again 

 but Thanks Again

AB

Thank you and Sorry,

 

By grouping i got the result like the excel pivot table

now i wish to filter that data by first file of the month in query editor.

 

 

Sample Data 

 

AB

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.