Forum Discussion
Count of items by date on Line Chart
- Anonymous4 years ago
HI Anonymous,
You can try to use the following measure formula if it helps:
TotalBugCountByDate = CALCULATE ( COUNT ( AllWorkItems[Work Item Type] ), FILTER ( ALLSELECTED ( AllWorkItems ), AllWorkItems[Date] <= MAX ( AllWorkItems[Date] ) && AllWorkItems[State] IN { "New", "Resolved", "Fixed", "Fix_Pending", "CLOSED", "Open", "Verification_Pending" } && AllWorkItems[Work Item Type] = "Bug" ), VALUES ( AllWorkItems[Date] ), VALUES ( AllWorkItems[State] ) )If the above also not hlep, can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng
Hi Anonymous ,
You can do something like
=
CALCULATE (
SUM ( table[value] ),
ALLEXCEPT ( table, table[column1], table[column2] )
)- Anonymous4 years agoNot applicable
my table has a lot of colums and I am not looking for a sum.. I am I just want a count. of the items by a specific type
- Anonymous4 years agoNot applicable
HI Anonymous,
Can you please share some dummy data with expected results? They should help us clarify your data structure and test to coding formula.
How to Get Your Question Answered Quickly - Microsoft Power BI Community
Regards,
Moonlight
- Anonymous4 years agoNot applicable
HI Anonymous,
You can try to use the following measure formula if it helps:
TotalBugCountByDate = CALCULATE ( COUNT ( AllWorkItems[Work Item Type] ), FILTER ( ALLSELECTED ( AllWorkItems ), AllWorkItems[Date] <= MAX ( AllWorkItems[Date] ) && AllWorkItems[State] IN { "New", "Resolved", "Fixed", "Fix_Pending", "CLOSED", "Open", "Verification_Pending" } && AllWorkItems[Work Item Type] = "Bug" ), VALUES ( AllWorkItems[Date] ), VALUES ( AllWorkItems[State] ) )If the above also not hlep, can you please share a pbix or some dummy data that keep the raw data structure with expected results? It should help us clarify your scenario and test to coding formula.
How to Get Your Question Answered Quickly
Regards,
Xiaoxin Sheng