Forum Discussion
SaCvP125
8 years agoFrequent Visitor
Create a Clustered Column Chart using Two Summarize Measures
Hi guys, I'm trying to create the following query using DAX: WITH OPEN_DATA AS ( SELECT COUNT(DISTINCT [Ticket ...
- 8 years ago
Add a calendar table and use the following measures.
Num_Open_Tickets = VAR d = MAX ( 'Calendar'[Date] ) RETURN CALCULATE ( DISTINCTCOUNT ( Tickets_Volumes[Ticket ID] ), Tickets_Volumes[OPEN DATE] = d )Num_Close_Tickets = VAR d = MAX ( 'Calendar'[Date] ) RETURN CALCULATE ( DISTINCTCOUNT ( Tickets_Volumes[Ticket ID] ), Tickets_Volumes[CLOSE DATE] = d )
v-chuncz-msft
8 years agoCommunity Support
Add a calendar table and use the following measures.
Num_Open_Tickets =
VAR d =
MAX ( 'Calendar'[Date] )
RETURN
CALCULATE (
DISTINCTCOUNT ( Tickets_Volumes[Ticket ID] ),
Tickets_Volumes[OPEN DATE] = d
)
Num_Close_Tickets =
VAR d =
MAX ( 'Calendar'[Date] )
RETURN
CALCULATE (
DISTINCTCOUNT ( Tickets_Volumes[Ticket ID] ),
Tickets_Volumes[CLOSE DATE] = d
)
Anonymous
6 years agoNot applicable
I think it won't work. When I filter by a specific month it will give me the number of projects open and closed in that month.
I want to know: for the projects opened in January, how many closed in January, February, March, etc.