Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hi
I am working on a dashboard that has been developed by someone else
I am struggling to breakdown this measure and what it is actually doing
Can someone please assist?
Thank you in advance
Solved! Go to Solution.
Its easier to read if its properly formatted
CALCULATE (
COUNTA ( 'Export'[Order] ),
DATESBETWEEN (
'Export'[Actual_Finish_date],
MAX ( 'Export'[Actual_Finish_date] )
- WEEKDAY ( MAX ( 'Export'[Actual_Finish_date] ), 3 ),
MAX ( 'Export'[Actual_Finish_date] )
)
)
So
MAX ( 'Export'[Actual_Finish_date] )
- WEEKDAY ( MAX ( 'Export'[Actual_Finish_date] ), 3 )
gives the Monday of the relevant date. Using that as a parameter to DATESBETWEEN it is counting the number of orders within that week.
I think its counting the number of orders in a given week, starting from the Monday
What is the purpose of this part of the measure? weekday(max('Export'[Actual_Finish_date]),3), ?
Thank you
Its easier to read if its properly formatted
CALCULATE (
COUNTA ( 'Export'[Order] ),
DATESBETWEEN (
'Export'[Actual_Finish_date],
MAX ( 'Export'[Actual_Finish_date] )
- WEEKDAY ( MAX ( 'Export'[Actual_Finish_date] ), 3 ),
MAX ( 'Export'[Actual_Finish_date] )
)
)
So
MAX ( 'Export'[Actual_Finish_date] )
- WEEKDAY ( MAX ( 'Export'[Actual_Finish_date] ), 3 )
gives the Monday of the relevant date. Using that as a parameter to DATESBETWEEN it is counting the number of orders within that week.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 52 | |
| 51 | |
| 35 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 92 | |
| 75 | |
| 41 | |
| 26 | |
| 25 |