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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

Reply
Ber001
Regular Visitor

DAX Operation for a mesure

Dear,

I'm getting crazy with a simple operation.

Table Product

Culunm 1 is the key culumn with the name of the product

Column 2 is a date

Column 3 is Custom Column (Number) with the result of Date.Month (Date) in powerquery

 

Culumn 1      I     Date      I   Month

Product 1      I 1/2/2021   I     2

Product 2      I  3/4/2021  I     4

 

Then, I just want to add a mesure with a simple multiplication : Product[Month] * Month(Now())

But I canont use Product[Month] value... I don't know why.

When I write Product[...   I just can use the other mesures of my table but not the Column values...

I tried with Related() but it doesn't work either.

Thank you for your help

Bertrand

 

 

2 REPLIES 2
Anonymous
Not applicable

@Ber001 

 

Are you trying to create a measure or a calculated column? These are two different things. If you want a measure, then you have to describe how it should aggregate data when more than 1 row is visible in the context. You have not done it, so a measure can only be a mere guess...

Jihwan_Kim
Super User
Super User

Hi, @Ber001 

 

Please try the below measure.

 

new measure = SELECTEDVALUE('Table'[Month]) * MONTH(NOW())
 

Hi, My name is Jihwan Kim.

If this post helps, then please consider accept it as the solution to help other members find it faster.


If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Click here to visit my LinkedIn page

Click here to schedule a short Teams meeting to discuss your question.

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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