cancel
Showing results for 
Search instead for 
Did you mean: 

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Reply
FredLEGUEN
Helper III
Helper III

Filter a page based on MAX Date

Hi,

 

I would like to know how I can filter a page of my PowerBI report automatically on the last date of my database.

 

I have created a basic measure MaxDate = MAX(DateColumn)

Then I have tried to drag this measure to my page filter.

But it doesn't work.

 

Do you know how I can solve this ?

 

Thanks

1 ACCEPTED SOLUTION
Vvelarde
Community Champion
Community Champion

@FredLEGUEN 

 

Hi, try creating a calculated column 

 

LastDateInData =
IF ( Table1[OrderDate] = MAX ( Table1[OrderDate] ), 1, 0 )

and filter when this column is 1.

 

Regards

 

Victor

 




Lima - Peru

View solution in original post

6 REPLIES 6
imranamikhan
Helper V
Helper V

Thank you

Anonymous
Not applicable

You cannot use measures at the page filter level. You can use a calculated column at the page level however. I would suggest converting your measure to a calculated column first and see if your DAX translates to fit your issue. 

Vvelarde
Community Champion
Community Champion

@FredLEGUEN 

 

Hi, try creating a calculated column 

 

LastDateInData =
IF ( Table1[OrderDate] = MAX ( Table1[OrderDate] ), 1, 0 )

and filter when this column is 1.

 

Regards

 

Victor

 




Lima - Peru
kayn
Frequent Visitor

I am using a Power BI dataset, I don't have the ability to create calculated columns, is achieving this possible?

Anonymous
Not applicable

Hi, ive tried this method, but seems its only shows max date on the filter slicer. how to make it also shows all dates, but will only select max date ? (especially when user access the link report, the page will automatically select max date, but still shows old dates)

max_date.PNG

Thanks it works 😃

I didn't know that only calculated columns could be use as filter

 

Helpful resources

Announcements
PBI November 2023 Update Carousel

Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

Community News

Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

Power BI Fabric Summit Carousel

The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors