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.
Hi I have a table as below. I would like to know how to use the slicer in such a way that when I pick Year 1, it would give me a barchart with ony Year1_Median, Year1_P25 and Year1_P75 and when I pick Year 5 from the slicer it would give me allthe measures for Year5 in the bar chart(lkie below). I know I may have to restructure the data but I need to know what would be the best appraoch.
Here is the table:
inst_name | Year1_Median | Year1_P25 | Year1_P75 | Year5_Median | Year5_P25 | Year5_P75 |
abc | 61691 | 51578 | 69881 | 62427 | 48395 | 71718 |
abc | 67840 | 60275 | 74638 | 76283 | 60662 | 89644 |
abc | 75504 | 51767 | 85939 | |||
abc | 54577 | 50854 | 116518 | |||
abc | 43174 | 38945 | 44991 | 62307 | 54122 | 74470 |
abc | 52272 | 42030 | 54537 | 59718 | 48399 | 92076 |
cda | ||||||
cda | 59793 | 49035 | 68015 | |||
cda | 43582 | 35310 | 47482 | 51827 | 42743 | 56783 |
wad | 60948 | 51730 | 75345 | |||
wad | 44174 | 41289 | 46312 | |||
wad | 51138 | 48701 | 61766 | |||
wad | 41271 | 35053 | 45585 | 61555 | 60085 | 76922 |
Solved! Go to Solution.
Try unpivoting your table through the "Query Editor".
1. Edit table
2. Select column name "inst_name" and right click on the column header
3. Select "Unpivot Other Columns"
You'll get an "attribute" Column which will contain values such as your column headers (Year1_Median, Year1_P25, Year1_P75 etc.) and then a "Value" Column which will be the corresponding dollar amount.
Hopefully that helps!
Derek G
Try unpivoting your table through the "Query Editor".
1. Edit table
2. Select column name "inst_name" and right click on the column header
3. Select "Unpivot Other Columns"
You'll get an "attribute" Column which will contain values such as your column headers (Year1_Median, Year1_P25, Year1_P75 etc.) and then a "Value" Column which will be the corresponding dollar amount.
Hopefully that helps!
Derek G
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 |
---|---|
63 | |
63 | |
53 | |
39 | |
25 |
User | Count |
---|---|
85 | |
57 | |
45 | |
43 | |
38 |