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

We've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now

Reply
Anonymous
Not applicable

Using TODAY in Measures

I have a column formula that works great when there is a month filter.  I need a similar formula that does not require the month filter.  What my formula is doing is adding up Friday, Saturday and Sunday shipping dollars if today is Monday.  Here is my formula. 

Shipped Yesterday = if(WEEKDAY(today())=2,if('Daily Sales Report Query'[Day]=today()-1,'Daily Sales Report Query'[Net $Sales],0)+ if('Daily Sales Report Query'[Day]=today()-2,'Daily Sales Report Query'[Net $Sales],0)+ if('Daily Sales Report Query'[Day]=today()-3,'Daily Sales Report Query'[Net $Sales],0),if('Daily Sales Report Query'[Day]=today()-1,'Daily Sales Report Query'[Net $Sales],0))

 

How can this be rewritten to work with no month filter and is bases solely on today's actual date?

3 REPLIES 3
MattAllington
Community Champion
Community Champion

There is almost certainly a better way, but there is not enough information to help you. Have a read of my advice here and post back a samp,e workbook https://exceleratorbi.com.au/get-help-power-bi/



* Matt is an 8 times Microsoft MVP (Power BI) and author of the Power BI Book Supercharge Power BI.
I will not give you bad advice, even if you unknowingly ask for it.
Anonymous
Not applicable

Alas my data is all confidential and it would be too much work to re-create a sample version.

Hi @Anonymous,


Based on your scenario, I can not get your requirements. And what's the month filter? The month field is not used in your formula? Please share more details, so that we can post the solution which is close to what you want.

Best Regards,
Angelia

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.