Forum Discussion
Count Events with Conditions
How does your data set look like?
Based on your data, you can use the concept of grouping or summarize and get the distinct count to achieve this.
- nelson7774 years agoFrequent Visitor
It basically looks like this
- PC27904 years agoCommunity Champion
Ideally you should have a date table which you should join with your main table to perform the calculations and analysis.
Create two measures as
No of clients = Count(Clients)
No of Devices = Count (Devices)
Now create a matrix with Client and Devices in Rows section, and Date in Columnssection and the values would contain your measures-No of clients & No of Devices
In the row header formatting of the matrix, switch off the +/- icon and stepped layout to have look nd feel of a table.
See if this works for you.
If not please give sample date in a format that can be copy pasted. I'll give you a complete solution usng that.
- nelson7774 years agoFrequent Visitor
I've updated the original question with Excel screenshots of the results I'm looking for.
I'm also trying this DAX:Measure =VAR vAlertsSummary = SUMMARIZE(f_VPNUptime,d_Calendar[Date],f_VPNUptime[Client], "Devices Qty",DISTINCTCOUNT(f_VPNUptime[Device Name]))VAR vFilteredAlerts =FILTER(vAlertsSummary,[Devices Qty] > 1)RETURNCOUNTROWS(vFilteredAlerts)But I'm not sure if I'm getting the expected results... still analysing.
Thanks!