Forum Discussion
Hiding columns if blank
Anonymous,
You can play with R scripting in a way to remove columns (which called variables in R) if first value in column is NULL.
Run R script
Hello,
This wouldn't work as the columns would be deleted in the query phase, right?
What I need is a 20-values column that, depending on the data, auto-filters to only either 10, 12 or 15 of those columns, without having blank columns, as it gives unnecesary information and creastes a horizontal scroll I definitely not want.
This feature is a must, but I don't see neither many votes in the Ideas about this issue nor any announcement to include it in following PBI releases.
Regards
- zoloturu8 years ago
Memorable Member
Anonymous,
Actually if you will load R script which will take only not empty columns from your data source and in Power BI M script you will not do any column specific transformation then it will work properly. Let me know if this is not clear.
- Anonymous8 years agoNot applicable
Hello,
I don't know about R, could you share some code so I can start bulding the tabla in R?
Thanks,