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.
Hello everyone
I have a column with 1's and 0's in it and i am trying to create a measure that looks in my column and only counts as 1 if there are 5 or more rows after it that also have the same value.
Is it possible to create such a measure?
Any help is greatly apprenticed.
Is there some sort of identity column (ID) or anything? How is this measure being used in a visual? Please see this post regarding How to Get Your Question Answered Quickly: https://community.powerbi.com/t5/Community-Blog/How-to-Get-Your-Question-Answered-Quickly/ba-p/38490
My mistake. I see now that some information is missing.
I have a table that, in a simplified version, looks like this:
The Value column is a calculated column that makes a check and outputs 0 or 1.
When there has been a 1 five times in a row or more, it begins to count them together. See the example below.
When the group of 1’s is broken by a 0, it stops counting and looks for the next row with a minimum of five 1’s.
Another solution could be to copy the 1’s that is in a group of at least five into a new column and then sum them up afterwards?
Thanks
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 |
---|---|
111 | |
100 | |
80 | |
64 | |
58 |
User | Count |
---|---|
146 | |
110 | |
93 | |
84 | |
67 |