Forum Discussion
Tabular Model: I am trying to create a Measure or Calculated column that holds the selected Period
Hi Aks-1 ,
You can get cumulative value in the range of slicer using DAX below.
Measure1=
Var FromDate = CALCULATE(MIN(Slicer[Date]),ALLSELECTED(Slicer[Date]))
Var ToDate = CALCULATE(MAX(Slicer[Date]),ALLSELECTED(Slicer[Date]))
Return
CALCULATE(SUM(Table1[sales]), FILTER(ALLSELECTED(Table1), Table1[Date]>=FromDate &&Table1[Date]<=ToDate))
If I misunderstood it, could you please share your sample data and desired output screenshots for further analysis? You can also upload sample pbix to OneDrive and post the link here. Do mask sensitive data before uploading.
Please read this post to get your answer quickly: How to Get Your Question Answered Quickly.
Best Regards,
Amy
Community Support Team _ Amy
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi v-xicai ,
I have the listed following filters
The intention here is to pass the Loss year value to the measure which calculates the total based on month and year to derive the respective Quarter.
= IF( IF(VALUE(LEFT(LossTriangle_POC[ACCTG_Period],4))>= 2017 && VALUE(LEFT( LossTriangle_POC[ACCTG_Period],4)) <= VALUE(LEFT(LossTriangle_POC[EVAULATIONPERIOD],4)) , VALUE(RIGHT(LossTriangle_POC[EVAULATIONPERIOD],2)) + ( ROUNDUP(VALUE( RIGHT(LossTriangle_POC[ACCTG_Period] ,2)/3),0) - ROUNDUP( VALUE(RIGHT(LossTriangle_POC[EVAULATIONPERIOD] ,2)/3),0)) * 3 + (VALUE(LEFT(LossTriangle_POC[ACCTG_Period],4)) - 2017 ) * 12 ,0) >= VALUE(RIGHT(LossTriangle_POC[EVAULATIONPERIOD],2)) , IF(VALUE(LEFT(LossTriangle_POC[ACCTG_Period],4))>= 2017 && VALUE(LEFT( LossTriangle_POC[ACCTG_Period],4)) <= VALUE(LEFT(LossTriangle_POC[EVAULATIONPERIOD],4)) , VALUE(RIGHT(LossTriangle_POC[EVAULATIONPERIOD],2)) + ( ROUNDUP(VALUE( RIGHT(LossTriangle_POC[ACCTG_Period] ,2)/3),0) - ROUNDUP( VALUE(RIGHT(LossTriangle_POC[EVAULATIONPERIOD] ,2)/3),0)) * 3 + (VALUE(LEFT(LossTriangle_POC[ACCTG_Period],4)) - 2017 ) * 12 ,0) , 0 )
The Sample data should be something like this:
Thank you so much for the response.