Forum Discussion
Aztec
8 years agoFrequent Visitor
Statistics based on predefined period in another table
Hi, I need to create incidents statistics occurred in a predefined period for :- i) Incident count by period ii) Backlog by period iii) Backlog completed by period So, there is a Period table...
v-chuncz-msft
8 years agoCommunity Support
You may refer to the following measures.
IncidentCount =
COUNTROWS (
FILTER (
Incident,
Incident[RaisedDate] < SELECTEDVALUE ( PeriodTable[EndDate] )
&& Incident[Closed Date] >= SELECTEDVALUE ( PeriodTable[StartDate] )
)
)
Backlog =
COUNTROWS (
FILTER (
Incident,
Incident[RaisedDate] < SELECTEDVALUE ( PeriodTable[StartDate] )
&& Incident[Closed Date] >= SELECTEDVALUE ( PeriodTable[StartDate] )
)
)
BacklogCompleted =
COUNTROWS (
FILTER (
Incident,
Incident[RaisedDate] < SELECTEDVALUE ( PeriodTable[StartDate] )
&& Incident[Closed Date] >= SELECTEDVALUE ( PeriodTable[StartDate] )
&& Incident[Closed Date] < SELECTEDVALUE ( PeriodTable[EndDate] )
)
)
Aztec
8 years agoFrequent Visitor
Thanks for your reply but the 3 formulas all return blank. There is no values after I selected a filter.
I have uploaded a the file to share with you.
https://www.dropbox.com/home/PowerBI?preview=Count_DateRange.pbix
Can you please advice why is it happenning this way?
Appreciate your help! Help for anyone very much appreciated!