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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Analitika
Post Prodigy
Post Prodigy

Filtering measure according to end date in Power BI?

Hello,

 

I would like to ask how to make that measure calculation will respond only to this  changes?

Analitika_0-1641283899854.png

Analitika_1-1641283912745.png

My formula which doesn't work. How to resolve the issue?

 

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Analitika 

You can fix the start date of slicer without creating a measure.

Add the field [date] in Slicer and set the start date in visual filter. Make the value of date is on or after specified date. Then in options of slicer and choose Before , slicer will fix the start date you set in visual filter.

Ailsamsft_0-1641525480699.png

Ailsamsft_1-1641525188289.png

I have attached my pbix file , you can refer to it.

 

Best Regard

Community Support Team _ Ailsa Tao

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

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Hi @Analitika 

You can fix the start date of slicer without creating a measure.

Add the field [date] in Slicer and set the start date in visual filter. Make the value of date is on or after specified date. Then in options of slicer and choose Before , slicer will fix the start date you set in visual filter.

Ailsamsft_0-1641525480699.png

Ailsamsft_1-1641525188289.png

I have attached my pbix file , you can refer to it.

 

Best Regard

Community Support Team _ Ailsa Tao

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

amitchandak
Super User
Super User

@Analitika ,
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

 

It should not respond to the start date ?

 

Do you need before or after, then you have those option in that small down arrow

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Yes should not respond to start date.

@Analitika , Then this should work

 

New Measure =
Var _max = maxx(allselected(Date) , Date[date])
return
calculate(sum(Table[value]), filter(all('Date'), Date[date] =_max))

 

or <=before , but prefer before slicer for that

 

New Measure =
Var _max = maxx(allselected(Date) , Date[date])
return
calculate(sum(Table[value]), filter(all('Date'), Date[date] <=_max))

 

If this does not help
Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Still not works. Here is an error:

Analitika_0-1641289987674.png

 

Helpful resources

Announcements
November Power BI Update Carousel

Power BI Monthly Update - November 2025

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

Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Solution Authors
Top Kudoed Authors