Forum Discussion
willatkinson
2 years agoHelper II
Expressions based on visualisation figures
Hi all, I had a table visualisation that was split into quaters via a date hiearchy. I was wondering if you are able to to calculate expressions based on values that are produced by a visual,...
Anonymous
2 years agoNot applicable
Hi willatkinson ,
This effect can be achieved using the DATESBETWEEN function.Refer to the following:
Quarter 2 Sales =
CALCULATE(
[total_sales],
DATESBETWEEN(
'Date'[Date],
DATE(Year(TODAY()), 4, 1),
DATE(Year(TODAY()), 6, 30)
)
)
Quarter 3 Sales =
CALCULATE(
[total_sales],
DATESBETWEEN(
'Date'[Date],
DATE(Year(TODAY()), 7, 1),
DATE(Year(TODAY()), 9, 30)
)
)
Best Regards,
Adamk Kong
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
willatkinson
2 years agoHelper II
This is what I get, it doesn't pick up the date field I'm trying to reference, and won't pick up a column in place of [total_sales]
- Anonymous2 years agoNot applicable
Hi willatkinson ,
Can you provide some test data to facilitate me to answer your question as soon as possible?
Best Regards,
Adamk Kong