Forum Discussion
Dynamic Measures based on filter selection
- 8 years ago
Hi Priyanka,
I think what you want to do is to create three measures:
#1 sum of sales
#2 sum of sales from month-1
#3 sum of sales from month-2
You could then put "month" as a field in the Power BI table and each of these three measures.
#1 should be quite easy to do using the SUM function
#2 and #3 - it'd be best to use CALCULATE with PARALLELPERIOD
Hope that helps get you started!
Alex
Hi Priyanka,
I think what you want to do is to create three measures:
#1 sum of sales
#2 sum of sales from month-1
#3 sum of sales from month-2
You could then put "month" as a field in the Power BI table and each of these three measures.
#1 should be quite easy to do using the SUM function
#2 and #3 - it'd be best to use CALCULATE with PARALLELPERIOD
Hope that helps get you started!
Alex