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

Dynamic Measures

Hello All,
I am new to PowerBI. 
I want to create a measure that can give me data based on the current month's data.

For example: If I have the Current Month i.e. November with value = 1000

So I want to have a Projection value based on the calculation which is  = ((November Value /Days elapsed in November)*Total Number of Days in November)

If we take current date as 3rd November then Formula would be - (1000/3)*30 = 10000
It should be a dynamic formula for every month with 28,30 and 31 days with respect to each month.

 

Kindly help me out.

 

Regards,
AJP

6 REPLIES 6
ryan_mayu
Super User
Super User

could you pls provide some sample data?





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Anonymous
Not applicable

Hello @ryan_mayu 
I have given a sample set as asked by you.
I want to automate the Projection using DAX. Here, the Formula for November Projection is : 

(Current Month Revenue)/(No. of Days elapsed in the current month) * (Total No. of days in the current Months)

For our case, it would be - 3000/3*30 = 30000

 

DateCompanyRevenue
31-07-2022Company_11000
31-08-2022Company_12000
30-09-2022Company_12000
31-10-2022Company_12500
03-11-2022Company_13000
November ProjectionCompany_130000

 

So, what will be the DAX for the Projection of the current month?

 

Regards,
Aditya

Anonymous
Not applicable

Hello @Ashish_Mathur and @ryan_mayu ,
Thank you so much for your time and effort. Unfortunately, I am not able to populate the data using the formula given by you guys.
I have curated the DAX as per my tables, but when I am using the measure in any chart it gives blank values. 
Do you have any clue why that might be happening?
Kindly help.

 

Regards,
AJP

pls share your pbix file





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




Hi,

You may download my PBI file from here.

Hope this helps.

Untitled.png


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/

@Anonymous 

maybe you can try this to create a measure

Measure = 
VAR _date=maxx(FILTER('Table',year('Table'[Date])=year(today())&&month('Table'[Date])=month(today())),'Table'[Date])
VAR _value=maxx(FILTER('Table','Table'[Date]=_date),'Table'[Revenue])
return _value/day(_date)*day(EOMONTH(_date,0))




Did I answer your question? Mark my post as a solution!

Proud to be a Super User!




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.