Forum Discussion
Return Value from other column
- 6 years ago
Hi, Anonymous
Based on your description, you may create a measure as below.
Pricing Value = var _date = SELECTEDVALUE(Takeup[Date]) var _type = SELECTEDVALUE(Takeup[Type]) return CALCULATE( AVERAGE(Pricing[Value]), FILTER( ALLSELECTED(Pricing), Pricing[Date] = _date&& Pricing[Type] = _type ) )Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hello Anonymous ,
You may try following as New table:
Takeup Table =
SUMMARIZE(
PricingData,
PricingData[ID],
PricingData[Type],
"Takeup Value",AVERAGE(PricingData[Expected]),
"Expected",AVERAGE(PricingData[Value])
)
Alternatively, you could also use Group By feature in Power Query.
Cheers!
Vivek
If it helps, please mark it as a solution
Kudos would be a cherry on the top 🙂
https://www.vivran.in/
Connect on LinkedIn
Sorry, I guess I wrongly asking the question.
The pricing value is averaged to the take up table, based on type.
Actually there also a date column on the table.
- v-alq-msft6 years agoCommunity Support
Hi, Anonymous
Based on your description, you may create a measure as below.
Pricing Value = var _date = SELECTEDVALUE(Takeup[Date]) var _type = SELECTEDVALUE(Takeup[Type]) return CALCULATE( AVERAGE(Pricing[Value]), FILTER( ALLSELECTED(Pricing), Pricing[Date] = _date&& Pricing[Type] = _type ) )Result:
Best Regards
Allan
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.