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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
amfc
Frequent Visitor

Measure PreviousDay on Filter

Hi Team, 

I have the @easure  PreviousDay = TODAY()-1     

And when i try to apply this measure on the filter of the page is not possible... 

My goal is to present the value of previous day on a card. When the automactily update run, the PreviousDay measure is updated and the card also..  How can i do it?

DayProductivity
21/05/20236
22/05/20235
23/05/20236
24/05/20231

 

 

Thanks

1 ACCEPTED SOLUTION
Ritaf1983
Super User
Super User

Hi @amfc 
To achieve your goals you can add a Flag column, that returns 1 if it previous date:

DayBeforeToday = if('Table'[Day]=TODAY()-1,1,0)
Ritaf1983_0-1685063782821.png

From that point, if you need all pages to be filtered by the previous day , put it as a page-level filter

Ritaf1983_1-1685063869838.png

 

Or if it is relevant only for 1 measure use it as a filter in Dax formula:

Productivity on previous day = CALCULATE(sum('Table'[Productivity]), 'Table'[DayBeforeToday]=1)
Ritaf1983_2-1685064194770.png

 

Link to sample file 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

View solution in original post

3 REPLIES 3
amfc
Frequent Visitor

That is perfect.. Thank you for your help

I was happy to help😊

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile
Ritaf1983
Super User
Super User

Hi @amfc 
To achieve your goals you can add a Flag column, that returns 1 if it previous date:

DayBeforeToday = if('Table'[Day]=TODAY()-1,1,0)
Ritaf1983_0-1685063782821.png

From that point, if you need all pages to be filtered by the previous day , put it as a page-level filter

Ritaf1983_1-1685063869838.png

 

Or if it is relevant only for 1 measure use it as a filter in Dax formula:

Productivity on previous day = CALCULATE(sum('Table'[Productivity]), 'Table'[DayBeforeToday]=1)
Ritaf1983_2-1685064194770.png

 

Link to sample file 

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

Regards,
Rita Fainshtein | Microsoft MVP
https://www.linkedin.com/in/rita-fainshtein/
Blog : https://www.madeiradata.com/profile/ritaf/profile

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

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.