Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
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
User | Count |
---|---|
97 | |
87 | |
77 | |
67 | |
63 |
User | Count |
---|---|
110 | |
95 | |
95 | |
64 | |
59 |