header
2 TopicsDynamic Column Headers in matrix - Report Server
Hi everyone: I would like the matrix headers to be partly static and partly dynamic. Like this below The base structure is simple, I have a fact table, a calendar table and several dimension tables in a star schema. For my part, try the following. 1- Create an order column in the calendar table Orden = YEAR(CALENDARIO[FECHA]) * 100 + MONTH(CALENDARIO[FECHA]) 2- Create a summary table of the fields I need to use as a slicer TablaApoyo = SUMMARIZE( CALENDARIO, CALENDARIO[FINMES], CALENDARIO[Orden], CALENDARIO[Mes]) 3 - Create a measure that if the maximum order field in the calendar table is equal to the maximum order field in the "TablaApoyo" or equal to the maximum order value - 1, then calculate the units. In the case of the month of January, create another if condition, changing the -1 to -89 because the -89 indicates exactly the difference between January and December PRUEBA = IF( MAX(TablaApoyo[Mes] ) = 1, IF( MAX(CALENDARIO[Orden]) IN {MAX(TablaApoyo[Orden]) , MAX(TablaApoyo[Orden]) - 89 , MAX(TablaApoyo[Orden]) - 100}, [Unidades], BLANK() ), IF( MAX(CALENDARIO[Orden]) IN {MAX(TablaApoyo[Orden]) , MAX(TablaApoyo[Orden]) -1, MAX(TablaApoyo[Orden]) -100}, [Unidades], BLANK() ) ) As a result I get the dynamic header but I cannot add the text correctly with this approach. This is the result I appreciate in advance any help you can give me. Here is an example file and i based myself on this video for the solution in part, but it's not what I'm looking for.Solved1.5KViews0likes6CommentsCreate new columns with first and last header retrieved from component and header column
Hi all, I have data of the column Component and Header available and want to create to extra columns which return the start and end header like in the example below. Anyone who knows how to do so? (either in DAX (measure or calculated column) or PowerQuery). So you go from 1-->2-->3-->4 which means the start header is 2 and end header is 4 So you go from 5-->6-->7-->8 which means the start header is 6 and end header is 8 Component Header StartHeader EndHeader 1 2 2 4 2 3 2 4 3 4 2 4 5 6 6 8 6 7 6 8 7 8 6 8 KR, LarsSolved2.4KViews0likes13Comments