March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
125 | |
84 | |
66 | |
54 | |
43 |
User | Count |
---|---|
200 | |
107 | |
96 | |
64 | |
56 |