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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
Anonymous
Not applicable

Give attributes to a measure in DAX for filtering

Hello,

 

I am stuck with a DAX problem. I have 2 tables:

 

- "Cath" table with one column called "Types" => Cath[Types] :

RM5280_3-1595861832285.png

 

It contains all the differents type of items.

 

- I have an other table "Items" containing all kind of datas such as type, measure, price... :

 

RM5280_0-1595861111020.png

 

I created thanks to DAX a calculated culumn which give me the "NDT" values.

 

I have a relationship between Items[Type] and Cath[Types]. I display my informations in a matrix like below. I can use several filters to display the needed informations :

RM5280_2-1595861657071.png

 

What I'd like to do is to attribute "type" = "NDT" to my NDT values in the Cath[Types] column so when I filter on Cath[Type] = "NDT", it should display NDT sum.

 

Could some one help me ?

 

Thanks

 

 

2 REPLIES 2
Fowmy
Super User
Super User

@Anonymous 

Didn't quite get what you are trying to achieve. Can you explain and how the expected result?

________________________

Did I answer your question? Mark this post as a solution, this will help others!.

I accept KUDOS 🙂

YouTube, LinkedIn

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Anonymous
Not applicable

Hello, thanks for answering.

 

I'm trying to sum up : 

 

I have this data table :

RM5280_3-1595947049457.png

Thanks to DAX, I creat a calculated column "NDT" like this :

 

RM5280_2-1595947031065.png

 

In my repport, I have a matrix displaying quanties for each type of items :

 
 

RM5280_0-1595947247667.png

 

 

link to a "type" filter :

 

RM5280_1-1595947288324.png

 

What I want to do is to have my "NDT" displayed in my matrix like this :

RM5280_0-1595946969612.png

 

When I click on NDT in my filter, I should have only NDT displayed. My problem is that NDT values come from a calculated column. The values are not linked to "NDT" type. 

 

Is that more understantable ?

 

Thanks !

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.

June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

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