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
yiying
Helper I
Helper I

Need help with DAX

So here is my problem. I am trying to compare the future budget of the remaining days in this month with the average revenue for past days.So the whole table is filtered from today to the end of the month. However the average should only filtered by the day of the week. The average should be based on the data from last 4 weeks.

 Here is an example of my table:

Capture.PNG

 My measure was like this: Past Daily AVG PMT=DIVIDE([Total PMT],DISTINCTCOUNT('Complete WO'[DateKey]))

So my question is: How to include only 4 weeks of data and how to make this measure not afftected by date filter other than day of the week? 

 

 

 

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

Can you supply your formulas for your measures or calculated columns?



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

I have edit my question. Please take a look. Thank you!

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.