Join us for an expert-led overview of the tools and concepts you'll need to pass exam PL-300. The first session starts on June 11th. See you there!
Get registeredPower BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.
Hi
I need two values each row. One is each row lastnonblank value (here I use LASTNONBLANK function) and value_12 = lastnonblank - 12.
For example: (I need value no 13 and no 1)
1 2,2
2 10,0
3 8,8
4 1,1
5 5,5
6 9,9
7 3,3
8 1,9
9 7,9
10 4,6
11 3,4
12 5,4
13 7,2
What I have to do in PowerBi?
Hi @mardennn,
Could you please mark the proper answer as solution or share the solution if it's convenient for you? That will be a big help to the others.
Best Regards!
Dale
Hi @mardennn,
1. As a calculated column.
CalcultedColumn = VAR lastColumn1 = MAX ( [Column1] ) RETURN CALCULATE ( VALUES ( Table1[Value_12] ), 'Table1'[Column1] IN { lastColumn1, lastColumn1 - 12 } )
2. As a measure.
Measure = VAR lastColumn = CALCULATE ( MAX ( 'Table1'[Column1] ), ALL ( 'Table1' ) ) RETURN CALCULATE ( MAX ( 'Table1'[Value_12] ), FILTER ( 'Table1', 'Table1'[Column1] IN { lastColumn, lastColumn - 12 } ) )
If these aren't what you want, please post a sample of the result.
Best Regards!
Dale
Hi
I need two values each row. One is each row lastnonblank value (here I use LASTNONBLANK function) and value_12 = lastnonblank - 12.
For example: (I need value no 13 and no 1)
1 2,2
2 10,0
3 8,8
4 1,1
5 5,5
6 9,9
7 3,3
8 1,9
9 7,9
10 4,6
11 3,4
12 5,4
13 7,2
What I have to do in PowerBi?
User | Count |
---|---|
84 | |
79 | |
70 | |
47 | |
41 |
User | Count |
---|---|
108 | |
52 | |
50 | |
40 | |
40 |