Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
I know this has been asked and answered, but I have not yet found a solution. I have a matrix whose datasource is coming out of a datawarehouse. The datawarehouse has 40 columns named Task1Name, Task2Name...Task40Name. There are some instances where groups of data WILL use all of these Task columns, however most use much less and some use more than others. Is there a way to NOT show, or hide, or not even select the columns in the Query, if there is not Name data for that field?
Thanks for the information
Solved! Go to Solution.
You should unpivot your data, so that your 40 column turn into two columns (task name and task value). You can then filter out any blank/null rows. In your matrix visual, you can use the task name column in the column field well to repivot your data showing only the columns that have data.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
You should unpivot your data, so that your 40 column turn into two columns (task name and task value). You can then filter out any blank/null rows. In your matrix visual, you can use the task name column in the column field well to repivot your data showing only the columns that have data.
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
So I would unpivot at the query level then?
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 59 | |
| 43 | |
| 42 | |
| 23 | |
| 17 |
| User | Count |
|---|---|
| 190 | |
| 122 | |
| 96 | |
| 66 | |
| 47 |