Forum Discussion
Complex query
- 4 years ago
It can be like:
Count(Opendate) = Count(Table[numjob])Count(Closedate) = CALCULATE(count(Table[numjob]),USERELATIONSHIP(Table[closedjobdate],CalendarTable[Date]))
First of all you need to have a Calendar table with which your this table will have with.
Refer - Power BI Date or Calendar Table Best Method: DAX or Power Query? - RADACAD
Then have two relationship, one between Date from Calendar and openedjobdate(active)
The other between Date from Calendar and closedjobdate(inactive)
Then create two measures to count the number of jobs.
Please note for closeddate you will have to use USERELATIONSHIP dax
And at last in matrix, take month from Calendar table and the measures like this:
- sabinocivita4 years agoFrequent Visitor
Hi PC2790,
thanks for answer.
When you say "Then create two measures to count the number of jobs." on which columns are they based on? Cause I have only one column for numjob
- PC27904 years agoCommunity Champion
It can be like:
Count(Opendate) = Count(Table[numjob])Count(Closedate) = CALCULATE(count(Table[numjob]),USERELATIONSHIP(Table[closedjobdate],CalendarTable[Date]))- sabinocivita4 years agoFrequent Visitor
Ok, very clear now, thanks a lot.