Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
How to count rows only if the id appears more than 3 times under a date slicer?
It would be like calculate(count(id), (count(id)>3),date<max(date),date>min(date))
Solved! Go to Solution.
Hello @Anonymous
It will look something like this:
IDs > 3 =
COUNTX (
FILTER (
VALUES ( YourTable[ID] ),
CALCULATE ( COUNTROWS ( YourTable ) ) > 3
),
0
)
We are generating the list of ID's then filtering that list based on the count being > 3 then counting the remaining list. The date slicer is applied as a filter to the measure without needing to be included in the measure.
If this solves your issues please mark it as the solution. Kudos 👍 are nice too.
Hello @Anonymous
It will look something like this:
IDs > 3 =
COUNTX (
FILTER (
VALUES ( YourTable[ID] ),
CALCULATE ( COUNTROWS ( YourTable ) ) > 3
),
0
)
We are generating the list of ID's then filtering that list based on the count being > 3 then counting the remaining list. The date slicer is applied as a filter to the measure without needing to be included in the measure.
If this solves your issues please mark it as the solution. Kudos 👍 are nice too.
It works! Thanks you so much!
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
114 | |
99 | |
83 | |
70 | |
60 |
User | Count |
---|---|
150 | |
115 | |
104 | |
89 | |
65 |