Forum Discussion
SM4
2 years agoRegular Visitor
Displaying columns based on user input.
I am new to power bi so please forgive me if its a simple silly solution. I am working with data which has value for month-year for 2 years i.e. 24 columns, i want to creat a table/matrix wherein...
- 2 years ago
Hi SM4
Please refer to attached sample file the proposed solution - 2 years ago
Month YTD = VAR Months = ALLNOBLANKROW ( 'Table'[Month Name], 'Table'[Month] ) RETURN GENERATE ( Months, FILTER ( SELECTCOLUMNS ( Months, "@Month", 'Table'[Month] ), [@Month] <= 'Table'[Month] && YEAR ( [@Month] ) = YEAR ( 'Table'[Month] ) ) )