Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

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.

Reply
newpbiuser01
Helper IV
Helper IV

Referencing Column from slicer

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:

CategorySubcategoryFYSpend
CatASubcatAFY20221
CatBSubcatBFY2021

10

CatCSubcatBFY202020
CatASubcatCFY202030

 

I then unpivoted all the columns to get the following DimAttribute table:

AttributeValue
CategoryCatA
CategoryCatB
CategoryCatC
SubcategorySubcatA
SubcategorySubcatB
SubcategorySubcatC
FYFY2020
FYFY2021
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!

 

1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@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

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@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

Hi @amitchandak,

Thank you! This is perfect! 

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.