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.
I am currently facing a problem in finding a suitable DAX formula for resolving an issue.
ERP report provides information in the format below. It lists all GL first and then cost centre as a sub-total row.
GL Amount
9000 10000
9001 20000
1010 30000
9002 1000
9005 2000
1011 3000
I want to transform my table in the format below
GL Cost Centre Amount
9000 1010 10000
9001 1010 20000
1010 1010 30000
9002 1011 1000
9005 1011 2000
1011 1011 3000
Appreciate if anyone can help
Solved! Go to Solution.
@Anonymous
File attached as well
@Anonymous
Give this a shot.
First Add an Index Column from Query Editor
Then add this calculated column
Cost Centre = VAR GL_Character = 9 VAR Cost_Centre = 1 RETURN IF ( VALUE ( LEFT ( [GL] ) ) = GL_Character, MINX ( TOPN ( 1, FILTER ( Table1, [Index] > EARLIER ( [Index] ) && VALUE ( LEFT ( [GL] ) ) = Cost_Centre ), [Index], ASC ), [GL] ), [GL] )
@Anonymous
File attached as well
User | Count |
---|---|
82 | |
72 | |
67 | |
47 | |
36 |
User | Count |
---|---|
111 | |
56 | |
50 | |
42 | |
40 |