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.
Hi.
Trying to create a column that counts consecutive days based on "Eventkode" sorted in "Litra" like the illustration shown below.
Hope someone can help.
Thanks in advance.
Solved! Go to Solution.
Hi @damj
Create calculated columns
clc1 = CALCULATE(DISTINCTCOUNT('Table'[date]),FILTER(ALLEXCEPT('Table','Table'[litra]),[date]<=EARLIER('Table'[date]))) earlier day = CALCULATE(MAX('Table'[date]),FILTER(ALLEXCEPT('Table','Table'[litra]),'Table'[date]=EARLIER('Table'[date])-1)) clc 2 = IF([earlier day]=BLANK(),1,[clc1])
Hi @damj
Create calculated columns
clc1 = CALCULATE(DISTINCTCOUNT('Table'[date]),FILTER(ALLEXCEPT('Table','Table'[litra]),[date]<=EARLIER('Table'[date]))) earlier day = CALCULATE(MAX('Table'[date]),FILTER(ALLEXCEPT('Table','Table'[litra]),'Table'[date]=EARLIER('Table'[date])-1)) clc 2 = IF([earlier day]=BLANK(),1,[clc1])
Hi @damj
Try this column.
Column = VAR _tbl = CALCULATETABLE( VALUES( 'Table'[Date] ), ALLEXCEPT( 'Table', 'Table'[Litra] ) ) RETURN RANKX( _tbl, CALCULATE( MAX( 'Table'[Date] ) ),,DESC )
Hi Mariusz.
Tried to implement the code, but it didn't have the desired effect.
I need "Eventcode" to count up for each day it triggers when consecutive, and start from 1 when not. Sorted in the different "Litra" = (Machinenr).
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 |
---|---|
113 | |
99 | |
80 | |
70 | |
59 |
User | Count |
---|---|
150 | |
119 | |
104 | |
87 | |
67 |