Forum Discussion

KevBI's avatar
KevBI
Icon for Helper I rankHelper I
4 years ago

Measure in calculated Column not getting Transformed by Time Filter

I have following problem to solve. 
Spoilage Costs is the sum of costs per Value Stream.
The column AOP is a prediction of costs, that gets put into a excel file for every month.

The Column AOPWD is the calculated column I'm having problems with, the calculation
multiples the column "AOP" with "WDMonth" and divides it with the workdays.
The problem is that the column Workdays is a Measure because it needs to change based on the Filtered Date in the Report.
So in the calculation is having problems with the Measure, is there another way to tackle this problem or am I doing something wrong?
Thank you!

2 Replies

  • KevBI , You need to create a measure. If you want to use slicer values. So try to create a measure, instead of calculated column

     

    If this does not help
    Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data.

  • amitchandak 
    So my calculated Column would look like this : 

    AOPWD = 'Spoilage AOP 2022'[AOP] / 'Spoilage AOP 2022'[WDMonth] * [workdays]
    I already tried to use a Measure but when using a Measure I couldn'T get a Value for every Column, in my case for every Value Stream.
    How would I do that calculation in a Measure so i get the correct output for every Value Stream?