Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hello,
I am trying to use the value selected from a slicer (based off an unrelated dimension table) to get the column name for the main table.
So my main data table looks as follows:
Category | Subcategory | FY | Spend |
CatA | SubcatA | FY2022 | 1 |
CatB | SubcatB | FY2021 | 10 |
CatC | SubcatB | FY2020 | 20 |
CatA | SubcatC | FY2020 | 30 |
I then unpivoted all the columns to get the following DimAttribute table:
Attribute | Value |
Category | CatA |
Category | CatB |
Category | CatC |
Subcategory | SubcatA |
Subcategory | SubcatB |
Subcategory | SubcatC |
FY | FY2020 |
FY | FY2021 |
FY | FY2022 |
I am using a slicer on the Attribute column within the DimAttribute table for my row header in my matrix visual, but to be able to get my "value" or total spend, I need to do a sum of the Spend column. For that I'd need to get the sum([Spend]) over the selectedvalue(DimAttribute[Attribute]). In other words, if my attribute slicer value = "Category", how could I define - sum([Spend]) over Category (considering the DimAttribute and the main table aren't related)? Would anyone be able to help?
Thank you so much!
Solved! Go to Solution.
@newpbiuser01 , No need for work arounds for column slicer. Refer New feature in May 2022 release
Field parameters
https://powerbi.microsoft.com/en-us/blog/power-bi-may-2022-feature-summary/#post-19361-_Toc103022212
@newpbiuser01 , No need for work arounds for column slicer. Refer New feature in May 2022 release
Field parameters
https://powerbi.microsoft.com/en-us/blog/power-bi-may-2022-feature-summary/#post-19361-_Toc103022212
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
109 | |
106 | |
87 | |
75 | |
66 |
User | Count |
---|---|
125 | |
114 | |
98 | |
81 | |
73 |