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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
How can I create a DAX measure to display the count of approved orders by month?
Table: Purchasing Location
Date Table:
Unrelated slicer date table: 'Date_Workflow Approvals'
I think i'm close with the following:
- but when i put on the chart filter for PO Activity type = "EME" (for drill through to data), it breaks the lines
Approval EME Count YTD =
VAR EndMonth =
MAX ( 'Date_Workflow Approvals'[Date] )
VAR StartMonth =
EOMONTH ( EndMonth, -12 )
VAR SelectedMonth =
MAX ( 'Workflow - All Approvals'[Month] )
RETURN
IF (
SelectedMonth >= StartMonth
&& SelectedMonth <= EndMonth,
CALCULATE (
COUNT ( 'Workflow - All Approvals'[Order Number] ),
'Workflow - All Approvals'[Decision Code] = "Approve",
'Workflow - All Approvals'[PO Activity Type] = "EME",
'Workflow - All Approvals'[Month] >= StartMonth
&& 'Workflow - All Approvals'[Month] <= SelectedMonth
) + IF(ISBLANK(SelectedMonth) && NOT ISBLANK(StartMonth), 0, 0),
BLANK ()
)
I've spent hours going in circles with ChatGPT but getting nowhere..
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 11 | |
| 9 | |
| 9 | |
| 6 | |
| 5 |
| User | Count |
|---|---|
| 27 | |
| 22 | |
| 19 | |
| 17 | |
| 11 |