Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
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..
User | Count |
---|---|
12 | |
11 | |
8 | |
6 | |
6 |
User | Count |
---|---|
25 | |
19 | |
14 | |
10 | |
7 |