Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
I have a line chart with multiple daily market price date (X axis), for example, daily crude oil price and GBP/EUR tracking against the date (Y axis).
As the chart contains a lot of data it looks crowded, and I am looking for a way to use the headers as the slicers, For example, select crude oil and compare this to another measure over a given time frame.
Date slicers are working fine, but how can I use a slicer to choose what data I only want to view.
Data is updated daily and is built in an excel table.
Was hoping a new table containing the column headers would be a simple fix, but not worked.
Solved! Go to Solution.
Hi @Chrishurcombe,
If I understand you correctly, you can use Unpivot Columns option in Query Editor(which turns multiple column headers into a single column but in rows. and store their values in another column) to unpivot your crude oil price and GBP/EUR column first, then you can use the Attribute(Header Name) column as Legend , Value column as Value on the Line Chart, and then use Attribute(Header Name) column as a Slicer to choose what data you want to view. For more details about how to Unpivot Columns in Power BI Desktop, you can refer to this article.
Regards
Hi @Chrishurcombe,
If I understand you correctly, you can use Unpivot Columns option in Query Editor(which turns multiple column headers into a single column but in rows. and store their values in another column) to unpivot your crude oil price and GBP/EUR column first, then you can use the Attribute(Header Name) column as Legend , Value column as Value on the Line Chart, and then use Attribute(Header Name) column as a Slicer to choose what data you want to view. For more details about how to Unpivot Columns in Power BI Desktop, you can refer to this article.
Regards
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
71 | |
70 | |
43 | |
31 | |
26 |
User | Count |
---|---|
89 | |
49 | |
44 | |
38 | |
37 |