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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

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